Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
Start(ctx context.Context, stop context.CancelFunc) <-chan error
}
func NewServer ¶
func NewServer( serverPort string, marketBalanceSvc application.MarketBalanceService, marketPriceSvc application.MarketPriceService, marketsLoaderSvc application.MarketsLoaderService, marketSvc application.MarketService, opts ...ServerOption, ) (Server, error)
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
A ServerOption sets options such as credentials, codec and keepalive parameters, etc.
func WithInsecureGrpcGateway ¶
func WithInsecureGrpcGateway() ServerOption
func WithTls ¶
func WithTls(certFile, keyFile string) ServerOption
Click to show internal directories.
Click to hide internal directories.