Documentation
¶
Index ¶
- Variables
- type HandlerOpts
- func (x *HandlerOpts) ClearFieldMask()
- func (x *HandlerOpts) GetFieldMask() *fieldmaskpb.FieldMask
- func (x *HandlerOpts) GetProxy() string
- func (x *HandlerOpts) HasFieldMask() bool
- func (*HandlerOpts) ProtoMessage()
- func (x *HandlerOpts) ProtoReflect() protoreflect.Message
- func (x *HandlerOpts) Reset()
- func (x *HandlerOpts) SetFieldMask(v *fieldmaskpb.FieldMask)
- func (x *HandlerOpts) SetProxy(v string)
- func (x *HandlerOpts) String() string
- type HandlerOpts_builder
- type ServiceOpts
- type ServiceOpts_builder
Constants ¶
This section is empty.
Variables ¶
var ( // Opts for a handler. // // optional malonaz.codegen.gateway.v1.HandlerOpts opts = 22942; E_Opts = &file_malonaz_codegen_gateway_v1_gateway_proto_extTypes[1] )
Extension fields to descriptorpb.MethodOptions.
var ( // Opts for a service. // // optional malonaz.codegen.gateway.v1.ServiceOpts service_opts = 112211; E_ServiceOpts = &file_malonaz_codegen_gateway_v1_gateway_proto_extTypes[0] )
Extension fields to descriptorpb.ServiceOptions.
var File_malonaz_codegen_gateway_v1_gateway_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HandlerOpts ¶
type HandlerOpts struct {
// Proxy can be set to a fully qualified method name to indicate that this method simply forwards the request to
// a backend grpc endpoint. When set, the code generator generates the pass through handler.
// When unset, the code generator will skip generating the default pass-through
// handler for this method, expecting the developer to provide a custom
// implementation. This is useful for methods that require special logic,
// transformation, aggregation, or integration with multiple backend services.
Proxy string `protobuf:"bytes,1,opt,name=proxy,proto3" json:"proxy,omitempty"`
// A field mask to be applied on response objects.
FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
// contains filtered or unexported fields
}
HandlerOpts defines gateway-specific options for individual RPC methods. Controls how the gateway generates and handles the method implementation.
func (*HandlerOpts) ClearFieldMask ¶
func (x *HandlerOpts) ClearFieldMask()
func (*HandlerOpts) GetFieldMask ¶
func (x *HandlerOpts) GetFieldMask() *fieldmaskpb.FieldMask
func (*HandlerOpts) GetProxy ¶
func (x *HandlerOpts) GetProxy() string
func (*HandlerOpts) HasFieldMask ¶
func (x *HandlerOpts) HasFieldMask() bool
func (*HandlerOpts) ProtoMessage ¶
func (*HandlerOpts) ProtoMessage()
func (*HandlerOpts) ProtoReflect ¶
func (x *HandlerOpts) ProtoReflect() protoreflect.Message
func (*HandlerOpts) Reset ¶
func (x *HandlerOpts) Reset()
func (*HandlerOpts) SetFieldMask ¶
func (x *HandlerOpts) SetFieldMask(v *fieldmaskpb.FieldMask)
func (*HandlerOpts) SetProxy ¶
func (x *HandlerOpts) SetProxy(v string)
func (*HandlerOpts) String ¶
func (x *HandlerOpts) String() string
type HandlerOpts_builder ¶
type HandlerOpts_builder struct {
// Proxy can be set to a fully qualified method name to indicate that this method simply forwards the request to
// a backend grpc endpoint. When set, the code generator generates the pass through handler.
// When unset, the code generator will skip generating the default pass-through
// handler for this method, expecting the developer to provide a custom
// implementation. This is useful for methods that require special logic,
// transformation, aggregation, or integration with multiple backend services.
Proxy string
// A field mask to be applied on response objects.
FieldMask *fieldmaskpb.FieldMask
// contains filtered or unexported fields
}
func (HandlerOpts_builder) Build ¶
func (b0 HandlerOpts_builder) Build() *HandlerOpts
type ServiceOpts ¶
type ServiceOpts struct {
// contains filtered or unexported fields
}
ServiceOpts defines gateway-specific options for an entire gRPC service. Currently empty but can be extended with service-wide gateway configurations such as authentication requirements, rate limiting, or routing rules.
func (*ServiceOpts) ProtoMessage ¶
func (*ServiceOpts) ProtoMessage()
func (*ServiceOpts) ProtoReflect ¶
func (x *ServiceOpts) ProtoReflect() protoreflect.Message
func (*ServiceOpts) Reset ¶
func (x *ServiceOpts) Reset()
func (*ServiceOpts) String ¶
func (x *ServiceOpts) String() string
type ServiceOpts_builder ¶
type ServiceOpts_builder struct {
// contains filtered or unexported fields
}
func (ServiceOpts_builder) Build ¶
func (b0 ServiceOpts_builder) Build() *ServiceOpts