server

package
v0.0.0-...-608e6a2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 GetUseFunc(name string) (fiber.Handler, error)

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 Caller

type Caller interface {
	// Call allows a single request to be made
	Call(ctx context.Context, in *message.Request, opts ...CallOption) (*message.Response, error)
}

type Server

type Server interface {
	lifecycle.LifeCycle
}

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

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.

func (*UnimplementedTrellisServer) Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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