mock

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is a mock account manager service.

func New

func New() *Service

New creates a new account manager service.

func (*Service) Generate

func (s *Service) Generate(_ context.Context,
	_ *checker.Credentials,
	_ string,
	_ []byte,
	_ uint32,
	_ uint32,
) (
	core.Result,
	[]byte,
	[]*core.Endpoint,
	error,
)

Generate generates a new account.

func (*Service) Lock

func (s *Service) Lock(_ context.Context,
	_ *checker.Credentials,
	_ string,
) (
	core.Result,
	error,
)

Lock locks an account.

func (*Service) Unlock

func (s *Service) Unlock(_ context.Context,
	_ *checker.Credentials,
	_ string,
	_ []byte,
) (
	core.Result,
	error,
)

Unlock unlocks an account.

Jump to

Keyboard shortcuts

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