accountmanager

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	pb.UnimplementedAccountManagerServer
	// contains filtered or unexported fields
}

Handler is the account manager handler.

func New

func New(_ context.Context, params ...Parameter) (*Handler, error)

New creates a new signer handler.

func (*Handler) Generate

func (h *Handler) Generate(ctx context.Context, req *pb.GenerateRequest) (*pb.GenerateResponse, error)

Generate generates a new account.

func (*Handler) Lock

Lock locks an account.

func (*Handler) Unlock

Unlock unlocks an account.

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithAccountManager

func WithAccountManager(accountManager accountmanager.Service) Parameter

WithAccountManager sets the account manager service for the module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithProcess

func WithProcess(process process.Service) Parameter

WithProcess sets the process service for the module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL