Documentation
¶
Index ¶
- type Parameter
- func WithChecker(checker checker.Service) Parameter
- func WithFetcher(fetcher fetcher.Service) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.AccountManagerMonitor) Parameter
- func WithProcess(process process.Service) Parameter
- func WithRuler(ruler ruler.Service) Parameter
- func WithUnlocker(unlocker unlocker.Service) Parameter
- type Service
- func (s *Service) Generate(ctx context.Context, credentials *checker.Credentials, account string, ...) (core.Result, []byte, []*core.Endpoint, error)
- func (s *Service) Lock(ctx context.Context, credentials *checker.Credentials, accountName string) (core.Result, error)
- func (s *Service) Unlock(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithChecker ¶
WithChecker sets the access checker for this module.
func WithFetcher ¶
WithFetcher sets the account fetcher for this module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
func WithMonitor(monitor metrics.AccountManagerMonitor) Parameter
WithMonitor sets the monitor for this module.
func WithProcess ¶
WithProcess sets the process manager for this module.
func WithUnlocker ¶
WithUnlocker sets the account unlocker for this module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the account manager handler.
func (*Service) Generate ¶
func (s *Service) Generate(ctx context.Context, credentials *checker.Credentials, account string, passphrase []byte, signingThreshold uint32, participants uint32, ) ( core.Result, []byte, []*core.Endpoint, error, )
Generate generates an account.
Click to show internal directories.
Click to hide internal directories.