tdexagrpc

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 20 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL