looking forward to update component interface
We currently have a set of microservices. On the premise of ensuring the workload of maintenance, we hope to make a version that merges services. However, we encountered a problem. The original microservices used gRPC to call each other. When migrating to weaver, Function parameter passing of COMPONENT INTERFACE only supports basic types, such as int string bool ... Is there any plan for Weaver to support custom parameter types when passing parameters in components? Very much looking forward to adding this feature! thanks.
you mean by parameter types like
type Foo struct {
x int
y int
}
If so you can read the following in the documentation: Marshaling.
You can embed a weaver.AutoMarshal in your custom struct and it can be passed as a parameter.
type Foo struct {
weaver.AutoMarshal
x int
y int
}
Don't forget to run weaver generate afterwards, so the custom marshalings can be generated by weaver.
@seiferli is this still an issue for you?