Documentation ¶
Index ¶
- func AddArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string) []string
- func AddDHTArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string, ...) []string
- func AddRDVPArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string, ...) []string
- func ArgSet(flagName string, value string) string
- func ArgsHasWithPrefix(args []string, prefix string) bool
- func NetworkConfigGetBlank() *accounttypes.NetworkConfig
- func NetworkConfigGetDefault() *accounttypes.NetworkConfig
- func SanitizeCheckMultiAddr(addrs []string) error
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddArgsUsingNetworkConfig ¶ added in v2.308.0
func AddArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string) []string
func AddDHTArgsUsingNetworkConfig ¶ added in v2.308.0
func AddDHTArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string, defaultConfig *accounttypes.NetworkConfig) []string
func AddRDVPArgsUsingNetworkConfig ¶ added in v2.308.0
func AddRDVPArgsUsingNetworkConfig(m *accounttypes.NetworkConfig, args []string, defaultConfig *accounttypes.NetworkConfig) []string
func ArgsHasWithPrefix ¶ added in v2.302.0
func NetworkConfigGetBlank ¶ added in v2.302.0
func NetworkConfigGetBlank() *accounttypes.NetworkConfig
func NetworkConfigGetDefault ¶ added in v2.302.0
func NetworkConfigGetDefault() *accounttypes.NetworkConfig
func SanitizeCheckMultiAddr ¶ added in v2.302.8
Types ¶
type Options ¶
type Options struct { RootDirectory string Languages []language.Tag ServiceClientRegister bertybridge.ServiceClientRegister LifecycleManager *lifecycle.Manager NotificationManager notification.Manager BleDriver proximity.ProximityDriver NBDriver proximity.ProximityDriver Keystore accountutils.NativeKeystore Logger *zap.Logger DisableLogging bool }
type Service ¶
type Service interface { accounttypes.AccountServiceServer // SetLanguage set the use language for translate SetPreferredLanguages(tags ...language.Tag) // WakeUp should be used for background task or similar task. WakeUp(ctx context.Context) error // Close the service. Close() error // GetMessengerClient returns the Messenger Client of the actual Berty account if there is one selected. GetMessengerClient() (messengertypes.MessengerServiceClient, error) // GetProtocolClient returns the Protocol Client of the actual Berty account if there is one selected. GetProtocolClient() (protocoltypes.ProtocolServiceClient, error) }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.