Documentation ¶
Overview ¶
Package client provides GRPC utilities to simplify connecting to Trustero GRPC service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGRPCClient ¶
func InitGRPCClient(cert, override string)
InitGRPCClient sets up the SSL certificate for subsequent Trustero GRPC connections.
Types ¶
type ServerConnection ¶
type ServerConnection struct { Connection *grpc.ClientConn TlsDialOption grpc.DialOption }
var ServerConn *ServerConnection
func (*ServerConnection) CloseClient ¶
func (sc *ServerConnection) CloseClient() error
CloseClient closes a previously dialed Trustero GRPC connection.
func (*ServerConnection) Dial ¶
func (sc *ServerConnection) Dial(token, host string, port int) (err error)
Dial makes a GRPC connection to Trustero GRPC service. A Trustero JWT bearer token must be provided.
func (*ServerConnection) GetReceptorClient ¶
func (sc *ServerConnection) GetReceptorClient() (rc receptor_v1.ReceptorClient)
GetReceptorClient returns a Go client instance that implements the receptor_v1.Receptor Protobuf interface.
Click to show internal directories.
Click to hide internal directories.