Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func (*Bridge) GRPCListenerAddr ¶
func (*Bridge) GRPCWebListenerAddr ¶
func (*Bridge) GRPCWebSocketListenerAddr ¶
func (*Bridge) GetGRPCAddrFor ¶
GetGRPCAddrFor the given protocols, if not found return an empty string
func (*Bridge) NewGRPCClient ¶
NewGRPCClient return client service on success
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddGRPCListener ¶
AddGRPCListener create a grpc listener with the given multiaddr if a normal addr is given, it will listen by default on grpcweb (ex: ":0" -> "/ip4/127.0.0.1/tcp/0/grpcweb")
type Demo ¶
type Demo struct { *Bridge // contains filtered or unexported fields }
func NewDemoBridge ¶
func NewDemoBridge(config *DemoConfig) (*Demo, error)
type DemoConfig ¶
type DemoConfig struct { *Config // contains filtered or unexported fields }
func NewDemoConfig ¶
func NewDemoConfig() *DemoConfig
func (*DemoConfig) AddSwarmListener ¶
func (dc *DemoConfig) AddSwarmListener(laddr string)
func (*DemoConfig) LogLevel ¶
func (dc *DemoConfig) LogLevel(level string)
func (*DemoConfig) LoggerDriver ¶
func (dc *DemoConfig) LoggerDriver(dLogger NativeLoggerDriver)
func (*DemoConfig) OrbitDBDirectory ¶
func (dc *DemoConfig) OrbitDBDirectory(dir string)
type NativeLoggerDriver ¶
type Protocol ¶
type Protocol struct { *Bridge // contains filtered or unexported fields }
func NewProtocolBridge ¶
func NewProtocolBridge(config *ProtocolConfig) (*Protocol, error)
type ProtocolConfig ¶
type ProtocolConfig struct { *Config // contains filtered or unexported fields }
func NewProtocolConfig ¶
func NewProtocolConfig() *ProtocolConfig
func (*ProtocolConfig) LogLevel ¶
func (pc *ProtocolConfig) LogLevel(level string)
func (*ProtocolConfig) LoggerDriver ¶
func (pc *ProtocolConfig) LoggerDriver(dLogger NativeLoggerDriver)
Click to show internal directories.
Click to hide internal directories.