v1

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL