Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 7 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 {
	Disabled bool
	Cfg      *config.Datastore

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *Service

func (*Service) Config

func (s *Service) Config() *config.Datastore

func (*Service) Enabled

func (s *Service) Enabled() bool

func (*Service) GetInto

func (s *Service) GetInto(ctx context.Context, key *datastore.Key, storable datastore.Value) (dictHash int, err error)

func (*Service) Key

func (s *Service) Key(key string) *datastore.Key

func (*Service) Mode

func (s *Service) Mode() datastore.StoreMode

func (*Service) Put

func (s *Service) Put(ctx context.Context, key *datastore.Key, value datastore.Value, dictHash int) error

func (*Service) SetMode

func (s *Service) SetMode(mode datastore.StoreMode)

Jump to

Keyboard shortcuts

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