Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerStatusString ¶
Types ¶
type Config ¶
type Config interface { // ListenAddress is gRPC endpoint that Node binds to ListenAddress() string // MarketEndpoint is Marketplace gRPC endpoint MarketEndpoint() string // HubEndpoint is Hub's gRPC endpoint (not required) HubEndpoint() string // LocatorEndpoint is Locator service gRPC endpoint LocatorEndpoint() string // LogLevel return log verbosity LogLevel() int // KeyStorager included into config because of // Node instance must know how to open the keystore accounts.KeyStorager }
Config is LocalNode config
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is LocalNode instance
func New ¶
New creates new Local Node instance also method starts internal gRPC client connections to the external services like Market and Hub
func (*Node) InterceptStreamRequest ¶
func (n *Node) InterceptStreamRequest(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
Click to show internal directories.
Click to hide internal directories.