Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Generate(ctx context.Context, req *pb.GenerateRequest) (*pb.GenerateResponse, error)
- func (h *Handler) Lock(ctx context.Context, req *pb.LockAccountRequest) (*pb.LockAccountResponse, error)
- func (h *Handler) Unlock(ctx context.Context, req *pb.UnlockAccountRequest) (*pb.UnlockAccountResponse, error)
- type Parameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the account manager 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 ¶
func (h *Handler) Lock(ctx context.Context, req *pb.LockAccountRequest) (*pb.LockAccountResponse, error)
Lock locks an account.
func (*Handler) Unlock ¶
func (h *Handler) Unlock(ctx context.Context, req *pb.UnlockAccountRequest) (*pb.UnlockAccountResponse, error)
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 ¶
WithLogLevel sets the log level for the module.
func WithProcess ¶
WithProcess sets the process service for the module.
Click to show internal directories.
Click to hide internal directories.