grpc

package
v0.0.0-...-3388463 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InboundParams

type InboundParams struct {
	// contains filtered or unexported fields
}

type Server

type Server struct {
	pb.UnimplementedPrivateTransferTransportServer
	pb.UnimplementedPrivateTransferProtocolServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(grpcConfig *config.GrpcConfig, sm *msq.SessionManager) *Server

func (*Server) Invoke

func (s *Server) Invoke(ctx context.Context, inbound *pb.Inbound) (*pb.Outbound, error)

func (*Server) Peek

func (s *Server) Peek(ctx context.Context, inbound *pb.PeekInbound) (*pb.TransportOutbound, error)

func (*Server) Pop

func (s *Server) Pop(ctx context.Context, inbound *pb.PopInbound) (*pb.TransportOutbound, error)

func (*Server) Release

func (s *Server) Release(ctx context.Context, inbound *pb.ReleaseInbound) (*pb.TransportOutbound, error)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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