Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConnectGRPCServer ¶
func (*Client) DisconnectGRPCServer ¶
func (client *Client) DisconnectGRPCServer()
func (*Client) RunClientService ¶
func (client *Client) RunClientService(cfg HttpServerConfig)
type ClientConnector ¶
type ClientConnector interface { RunClientService(cfg HttpServerConfig) ConnectGRPCServer(address string) }
func NewClient ¶
func NewClient() ClientConnector
type Config ¶
type Config struct { // gRPC server start parameters section // gRPC is TCP port to listen by gRPC server GRPCPort string // DB Datastore parameters section // DatastoreDBHost is host of database DatastoreDBHost string // DatastoreDBUser is username to connect to database DatastoreDBUser string // DatastoreDBPassword password to connect to database DatastoreDBPassword string // DatastoreDBSchema is schema of database DatastoreDBSchema string }
Config is configuration for Server
type HttpServerConfig ¶
type HttpServerConfig struct {
Port int
}
Click to show internal directories.
Click to hide internal directories.