Documentation ¶
Index ¶
- Variables
- type HttpProxy
- type MockeryTestsSpec
- type Plugin
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetExcludeGlobalMiddlewares() []string
- func (x *Route) GetHttpProxy() *HttpProxy
- func (x *Route) GetMiddlewares() []string
- func (m *Route) GetServer() isRoute_Server
- func (x *Route) GetWebsocket() bool
- func (x *Route) GetWebsocketProxy() *WsProxy
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type Route_HttpProxy
- type Route_Websocket
- type Route_WebsocketProxy
- type Runtime
- type Runtime_Server
- func (Runtime_Server) Descriptor() protoreflect.EnumDescriptor
- func (x Runtime_Server) Enum() *Runtime_Server
- func (Runtime_Server) EnumDescriptor() ([]byte, []int)deprecated
- func (x Runtime_Server) Number() protoreflect.EnumNumber
- func (x Runtime_Server) String() string
- func (Runtime_Server) Type() protoreflect.EnumType
- type Server
- type Service
- type TestSpec
- type WsProxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Runtime_Server_name = map[int32]string{ 0: "GRPC", 1: "HTTP", 2: "WEBSOCKET_PROXY", 3: "WEBSOCKET", } Runtime_Server_value = map[string]int32{ "GRPC": 0, "HTTP": 1, "WEBSOCKET_PROXY": 2, "WEBSOCKET": 3, } )
Enum value maps for Runtime_Server.
View Source
var ( // repeated toolkit.Plugin plugins = 50001; E_Plugins = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[0] // repeated toolkit.Service services = 50002; E_Services = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[1] // optional toolkit.TestSpec tests_spec = 50004; E_TestsSpec = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[2] )
Extension fields to descriptorpb.FileOptions.
View Source
var ( // optional toolkit.Runtime runtime = 70001; E_Runtime = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[3] // optional toolkit.Server server = 70002; E_Server = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[4] )
Extension fields to descriptorpb.ServiceOptions.
View Source
var (
// optional toolkit.Route route = 60001;
E_Route = &file_protoc_gen_toolkit_toolkit_options_annotations_proto_extTypes[5]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_protoc_gen_toolkit_toolkit_options_annotations_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HttpProxy ¶
type HttpProxy struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*HttpProxy) Descriptor
deprecated
func (*HttpProxy) GetService ¶
func (*HttpProxy) ProtoMessage ¶
func (*HttpProxy) ProtoMessage()
func (*HttpProxy) ProtoReflect ¶
func (x *HttpProxy) ProtoReflect() protoreflect.Message
type MockeryTestsSpec ¶
type MockeryTestsSpec struct { Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // contains filtered or unexported fields }
func (*MockeryTestsSpec) Descriptor
deprecated
func (*MockeryTestsSpec) Descriptor() ([]byte, []int)
Deprecated: Use MockeryTestsSpec.ProtoReflect.Descriptor instead.
func (*MockeryTestsSpec) GetPackage ¶
func (x *MockeryTestsSpec) GetPackage() string
func (*MockeryTestsSpec) ProtoMessage ¶
func (*MockeryTestsSpec) ProtoMessage()
func (*MockeryTestsSpec) ProtoReflect ¶
func (x *MockeryTestsSpec) ProtoReflect() protoreflect.Message
func (*MockeryTestsSpec) Reset ¶
func (x *MockeryTestsSpec) Reset()
func (*MockeryTestsSpec) String ¶
func (x *MockeryTestsSpec) String() string
type Plugin ¶
type Plugin struct { Plugin string `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"` Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` // contains filtered or unexported fields }
func (*Plugin) Descriptor
deprecated
func (*Plugin) ProtoMessage ¶
func (*Plugin) ProtoMessage()
func (*Plugin) ProtoReflect ¶
func (x *Plugin) ProtoReflect() protoreflect.Message
type Route ¶
type Route struct { Middlewares []string `protobuf:"bytes,1,rep,name=middlewares,proto3" json:"middlewares,omitempty"` ExcludeGlobalMiddlewares []string `` /* 135-byte string literal not displayed */ // Types that are assignable to Server: // // *Route_HttpProxy // *Route_WebsocketProxy // *Route_Websocket Server isRoute_Server `protobuf_oneof:"server"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) GetExcludeGlobalMiddlewares ¶
func (*Route) GetHttpProxy ¶
func (*Route) GetMiddlewares ¶
func (*Route) GetWebsocket ¶
func (*Route) GetWebsocketProxy ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type Route_HttpProxy ¶
type Route_HttpProxy struct {
HttpProxy *HttpProxy `protobuf:"bytes,3,opt,name=http_proxy,json=httpProxy,proto3,oneof"`
}
type Route_Websocket ¶
type Route_Websocket struct {
Websocket bool `protobuf:"varint,5,opt,name=websocket,proto3,oneof"`
}
type Route_WebsocketProxy ¶
type Route_WebsocketProxy struct {
WebsocketProxy *WsProxy `protobuf:"bytes,4,opt,name=websocket_proxy,json=websocketProxy,proto3,oneof"`
}
type Runtime ¶
type Runtime struct { Plugins []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"` Servers []Runtime_Server `protobuf:"varint,2,rep,packed,name=servers,proto3,enum=toolkit.Runtime_Server" json:"servers,omitempty"` // contains filtered or unexported fields }
func (*Runtime) Descriptor
deprecated
func (*Runtime) GetPlugins ¶
func (*Runtime) GetServers ¶
func (x *Runtime) GetServers() []Runtime_Server
func (*Runtime) ProtoMessage ¶
func (*Runtime) ProtoMessage()
func (*Runtime) ProtoReflect ¶
func (x *Runtime) ProtoReflect() protoreflect.Message
type Runtime_Server ¶
type Runtime_Server int32
const ( Runtime_GRPC Runtime_Server = 0 Runtime_HTTP Runtime_Server = 1 Runtime_WEBSOCKET_PROXY Runtime_Server = 2 Runtime_WEBSOCKET Runtime_Server = 3 )
func (Runtime_Server) Descriptor ¶
func (Runtime_Server) Descriptor() protoreflect.EnumDescriptor
func (Runtime_Server) Enum ¶
func (x Runtime_Server) Enum() *Runtime_Server
func (Runtime_Server) EnumDescriptor
deprecated
func (Runtime_Server) EnumDescriptor() ([]byte, []int)
Deprecated: Use Runtime_Server.Descriptor instead.
func (Runtime_Server) Number ¶
func (x Runtime_Server) Number() protoreflect.EnumNumber
func (Runtime_Server) String ¶
func (x Runtime_Server) String() string
func (Runtime_Server) Type ¶
func (Runtime_Server) Type() protoreflect.EnumType
type Server ¶
type Server struct { Middlewares []string `protobuf:"bytes,1,rep,name=middlewares,proto3" json:"middlewares,omitempty"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetMiddlewares ¶
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Service ¶
type Service struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetPackage ¶
func (*Service) GetService ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type TestSpec ¶
type TestSpec struct { Mockery *MockeryTestsSpec `protobuf:"bytes,1,opt,name=mockery,proto3" json:"mockery,omitempty"` // contains filtered or unexported fields }
func (*TestSpec) Descriptor
deprecated
func (*TestSpec) GetMockery ¶
func (x *TestSpec) GetMockery() *MockeryTestsSpec
func (*TestSpec) ProtoMessage ¶
func (*TestSpec) ProtoMessage()
func (*TestSpec) ProtoReflect ¶
func (x *TestSpec) ProtoReflect() protoreflect.Message
type WsProxy ¶
type WsProxy struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*WsProxy) Descriptor
deprecated
func (*WsProxy) GetService ¶
func (*WsProxy) ProtoMessage ¶
func (*WsProxy) ProtoMessage()
func (*WsProxy) ProtoReflect ¶
func (x *WsProxy) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.