Documentation ¶
Index ¶
- Variables
- func GetUseFunc(name string) (fiber.Handler, error)
- func RegisterTrellisServer(s *grpc.Server, srv TrellisServer)
- func RegisterUseFunc(name string, rh fiber.Handler)
- type CallOption
- type CallOptions
- type Caller
- type Server
- type ServerType
- type TrellisClient
- type TrellisServer
- type UnimplementedTrellisServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "ALL", 2: "HTTP", 3: "GRPC", 4: "QUIC", } ServerType_value = map[string]int32{ "UNSPECIFIED": 0, "ALL": 1, "HTTP": 2, "GRPC": 3, "QUIC": 4, } )
Enum value maps for ServerType.
View Source
var File_trellis_tech_trellis_v1_proto_grpc_server_proto protoreflect.FileDescriptor
View Source
var File_trellis_tech_trellis_v1_proto_server_proto protoreflect.FileDescriptor
Functions ¶
func GetUseFunc ¶
func RegisterTrellisServer ¶
func RegisterTrellisServer(s *grpc.Server, srv TrellisServer)
func RegisterUseFunc ¶
func RegisterUseFunc(name string, rh fiber.Handler)
Types ¶
type CallOption ¶
type CallOption func(*CallOptions)
func GRPCCallOption ¶
func GRPCCallOption(opts ...grpc.CallOption) CallOption
type CallOptions ¶
type CallOptions struct {
GRPCCallOptions []grpc.CallOption
}
type ServerType ¶
type ServerType int32
const ( ServerType_UNSPECIFIED ServerType = 0 ServerType_ALL ServerType = 1 ServerType_HTTP ServerType = 2 ServerType_GRPC ServerType = 3 ServerType_QUIC ServerType = 4 )
func (ServerType) Descriptor ¶
func (ServerType) Descriptor() protoreflect.EnumDescriptor
func (ServerType) Enum ¶
func (x ServerType) Enum() *ServerType
func (ServerType) EnumDescriptor
deprecated
func (ServerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerType.Descriptor instead.
func (ServerType) Number ¶
func (x ServerType) Number() protoreflect.EnumNumber
func (ServerType) String ¶
func (x ServerType) String() string
func (ServerType) Type ¶
func (ServerType) Type() protoreflect.EnumType
type TrellisClient ¶
type TrellisClient interface { // Call allows a single request to be made Call(ctx context.Context, in *message.Request, opts ...grpc.CallOption) (*message.Response, error) }
TrellisClient is the client API for Trellis service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTrellisClient ¶
func NewTrellisClient(cc grpc.ClientConnInterface) TrellisClient
type TrellisServer ¶
type TrellisServer interface { // Call allows a single request to be made Call(context.Context, *message.Request) (*message.Response, error) }
TrellisServer is the server API for Trellis service.
type UnimplementedTrellisServer ¶
type UnimplementedTrellisServer struct { }
UnimplementedTrellisServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.