mock

package
v4.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMockConfig

func RegisterMockConfig() error

Types

type MockStore added in v4.0.1

type MockStore struct {
	configx.Values
}

func (*MockStore) Close added in v4.0.3

func (m *MockStore) Close() error

func (*MockStore) Done added in v4.0.3

func (m *MockStore) Done() <-chan struct{}

func (*MockStore) Lock added in v4.0.1

func (m *MockStore) Lock()

func (*MockStore) NewLocker added in v4.0.4

func (m *MockStore) NewLocker(name string) sync.Locker

func (*MockStore) Save added in v4.0.1

func (m *MockStore) Save(s string, s2 string) error

func (*MockStore) Unlock added in v4.0.1

func (m *MockStore) Unlock()

func (*MockStore) Watch added in v4.0.1

func (m *MockStore) Watch(opts ...configx.WatchOption) (configx.Receiver, error)

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

func (*Receiver) Next

func (r *Receiver) Next() (interface{}, error)

func (*Receiver) Stop

func (r *Receiver) Stop()

Jump to

Keyboard shortcuts

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