Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForceReconnect = errors.New("timeout (500ms) dispatching open session, forcing client to reconnect") ErrUnsupportedType = errors.New("connection type is not supported") )
Functions ¶
func DispatchDisconnect ¶
DispatchDisconnect cancel the context of the stateful connection forcing the client to disconnect
func DispatchOpenSession ¶
DispatchOpenSession will trigger the open session phase logic when calling this function. It will wait until it receives a response or timeout.
A proxy manager client needs to be connected for this function to work properly
Types ¶
type Server ¶
type Server struct { pb.UnimplementedTransportServer TLSConfig *tls.Config ReviewService review.Service IDProvider *idp.Provider ApiHostname string }
func (*Server) PreConnect ¶
func (s *Server) PreConnect(ctx context.Context, req *pb.PreConnectRequest) (*pb.PreConnectResponse, error)
func (*Server) ReviewStatusChange ¶
func (*Server) StartRPCServer ¶
func (s *Server) StartRPCServer()
Click to show internal directories.
Click to hide internal directories.