Documentation ¶
Overview ¶
Package bertybridge is the main gomobile entrypoint, used to generate iOS and Android frameworks.
Index ¶
- Variables
- type Bridge
- type Client
- type Config
- type NativeLoggerDriver
- type Protocol
- type ProtocolConfig
- func (pc *ProtocolConfig) AddSwarmListener(laddr string)
- func (pc *ProtocolConfig) DisableLocalDiscovery()
- func (pc *ProtocolConfig) EnablePOIDebug()
- func (pc *ProtocolConfig) EnableTracing()
- func (pc *ProtocolConfig) LogLevel(level string)
- func (pc *ProtocolConfig) LoggerDriver(dLogger NativeLoggerDriver)
- func (pc *ProtocolConfig) RootDirectory(dir string)
- func (pc *ProtocolConfig) SetTracingPrefix(prefix string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APIConfig = config.BertyMobile.APIConfig
)
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 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) AddSwarmListener ¶ added in v2.35.0
func (pc *ProtocolConfig) AddSwarmListener(laddr string)
func (*ProtocolConfig) DisableLocalDiscovery ¶ added in v2.98.1
func (pc *ProtocolConfig) DisableLocalDiscovery()
func (*ProtocolConfig) EnablePOIDebug ¶ added in v2.97.0
func (pc *ProtocolConfig) EnablePOIDebug()
func (*ProtocolConfig) EnableTracing ¶ added in v2.67.1
func (pc *ProtocolConfig) EnableTracing()
func (*ProtocolConfig) LogLevel ¶
func (pc *ProtocolConfig) LogLevel(level string)
func (*ProtocolConfig) LoggerDriver ¶
func (pc *ProtocolConfig) LoggerDriver(dLogger NativeLoggerDriver)
func (*ProtocolConfig) RootDirectory ¶ added in v2.57.1
func (pc *ProtocolConfig) RootDirectory(dir string)
func (*ProtocolConfig) SetTracingPrefix ¶ added in v2.68.0
func (pc *ProtocolConfig) SetTracingPrefix(prefix string)
Click to show internal directories.
Click to hide internal directories.