annotations

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use HttpProxy.ProtoReflect.Descriptor instead.

func (*HttpProxy) GetMethod

func (x *HttpProxy) GetMethod() string

func (*HttpProxy) GetService

func (x *HttpProxy) GetService() string

func (*HttpProxy) ProtoMessage

func (*HttpProxy) ProtoMessage()

func (*HttpProxy) ProtoReflect

func (x *HttpProxy) ProtoReflect() protoreflect.Message

func (*HttpProxy) Reset

func (x *HttpProxy) Reset()

func (*HttpProxy) String

func (x *HttpProxy) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Plugin.ProtoReflect.Descriptor instead.

func (*Plugin) GetPlugin

func (x *Plugin) GetPlugin() string

func (*Plugin) GetPrefix

func (x *Plugin) GetPrefix() string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) ProtoReflect

func (x *Plugin) ProtoReflect() protoreflect.Message

func (*Plugin) Reset

func (x *Plugin) Reset()

func (*Plugin) String

func (x *Plugin) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetExcludeGlobalMiddlewares

func (x *Route) GetExcludeGlobalMiddlewares() []string

func (*Route) GetHttpProxy

func (x *Route) GetHttpProxy() *HttpProxy

func (*Route) GetMiddlewares

func (x *Route) GetMiddlewares() []string

func (*Route) GetServer

func (m *Route) GetServer() isRoute_Server

func (*Route) GetWebsocket

func (x *Route) GetWebsocket() bool

func (*Route) GetWebsocketProxy

func (x *Route) GetWebsocketProxy() *WsProxy

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Runtime.ProtoReflect.Descriptor instead.

func (*Runtime) GetPlugins

func (x *Runtime) GetPlugins() []*Plugin

func (*Runtime) GetServers

func (x *Runtime) GetServers() []Runtime_Server

func (*Runtime) ProtoMessage

func (*Runtime) ProtoMessage()

func (*Runtime) ProtoReflect

func (x *Runtime) ProtoReflect() protoreflect.Message

func (*Runtime) Reset

func (x *Runtime) Reset()

func (*Runtime) String

func (x *Runtime) String() string

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) 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 (Runtime_Server) String

func (x Runtime_Server) String() string

func (Runtime_Server) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetMiddlewares

func (x *Server) GetMiddlewares() []string

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetPackage

func (x *Service) GetPackage() string

func (*Service) GetService

func (x *Service) GetService() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TestSpec.ProtoReflect.Descriptor instead.

func (*TestSpec) GetMockery

func (x *TestSpec) GetMockery() *MockeryTestsSpec

func (*TestSpec) ProtoMessage

func (*TestSpec) ProtoMessage()

func (*TestSpec) ProtoReflect

func (x *TestSpec) ProtoReflect() protoreflect.Message

func (*TestSpec) Reset

func (x *TestSpec) Reset()

func (*TestSpec) String

func (x *TestSpec) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use WsProxy.ProtoReflect.Descriptor instead.

func (*WsProxy) GetMethod

func (x *WsProxy) GetMethod() string

func (*WsProxy) GetService

func (x *WsProxy) GetService() string

func (*WsProxy) ProtoMessage

func (*WsProxy) ProtoMessage()

func (*WsProxy) ProtoReflect

func (x *WsProxy) ProtoReflect() protoreflect.Message

func (*WsProxy) Reset

func (x *WsProxy) Reset()

func (*WsProxy) String

func (x *WsProxy) String() string

Jump to

Keyboard shortcuts

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