Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGRPCConnection ¶
func GetGRPCConnection(serverHost string) (conn *grpc.ClientConn, err error)
GetGRPCConnection returns a new grpc connection
Types ¶
type Client ¶
type Client struct { Config *Config RPC rpc.GRPCClient }
Client contains all necessary information to connect to the server
func NewClient ¶
func NewClient(cfg *Config, conn *grpc.ClientConn) *Client
NewClient returns a new instance of the client
func (*Client) GetVersion ¶
GetVersion returns the server version
func (*Client) ServerStream ¶
ServerStream starts a stream from the server
Click to show internal directories.
Click to hide internal directories.