statusHandler

package
v1.4.18 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStatusHandlerMock

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

AppStatusHandlerMock -

func NewAppStatusHandlerMock

func NewAppStatusHandlerMock() *AppStatusHandlerMock

NewAppStatusHandlerMock -

func (*AppStatusHandlerMock) AddUint64

func (ashm *AppStatusHandlerMock) AddUint64(key string, val uint64)

AddUint64 -

func (*AppStatusHandlerMock) Close

func (ashm *AppStatusHandlerMock) Close()

Close -

func (*AppStatusHandlerMock) Decrement

func (ashm *AppStatusHandlerMock) Decrement(key string)

Decrement -

func (*AppStatusHandlerMock) GetUint64

func (ashm *AppStatusHandlerMock) GetUint64(key string) uint64

GetUint64 -

func (*AppStatusHandlerMock) Increment

func (ashm *AppStatusHandlerMock) Increment(key string)

Increment -

func (*AppStatusHandlerMock) IsInterfaceNil

func (ashm *AppStatusHandlerMock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*AppStatusHandlerMock) SetInt64Value

func (ashm *AppStatusHandlerMock) SetInt64Value(key string, value int64)

SetInt64Value -

func (*AppStatusHandlerMock) SetStringValue

func (ashm *AppStatusHandlerMock) SetStringValue(key string, value string)

SetStringValue -

func (*AppStatusHandlerMock) SetUInt64Value

func (ashm *AppStatusHandlerMock) SetUInt64Value(key string, value uint64)

SetUInt64Value -

type AppStatusHandlerStub

type AppStatusHandlerStub struct {
	AddUint64Handler      func(key string, value uint64)
	IncrementHandler      func(key string)
	DecrementHandler      func(key string)
	SetUInt64ValueHandler func(key string, value uint64)
	SetInt64ValueHandler  func(key string, value int64)
	SetStringValueHandler func(key string, value string)
	CloseHandler          func()
}

AppStatusHandlerStub is a stub implementation of AppStatusHandler

func (*AppStatusHandlerStub) AddUint64

func (ashs *AppStatusHandlerStub) AddUint64(key string, value uint64)

AddUint64 will call the handler of the stub for incrementing

func (*AppStatusHandlerStub) Close

func (ashs *AppStatusHandlerStub) Close()

Close will call the handler of the stub for closing

func (*AppStatusHandlerStub) Decrement

func (ashs *AppStatusHandlerStub) Decrement(key string)

Decrement will call the handler of the stub for decrementing

func (*AppStatusHandlerStub) Increment

func (ashs *AppStatusHandlerStub) Increment(key string)

Increment will call the handler of the stub for incrementing

func (*AppStatusHandlerStub) IsInterfaceNil

func (ashs *AppStatusHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*AppStatusHandlerStub) SetInt64Value

func (ashs *AppStatusHandlerStub) SetInt64Value(key string, value int64)

SetInt64Value will call the handler of the stub for setting an int64 value

func (*AppStatusHandlerStub) SetStringValue

func (ashs *AppStatusHandlerStub) SetStringValue(key string, value string)

SetStringValue will call the handler of the stub for setting an uint64 value

func (*AppStatusHandlerStub) SetUInt64Value

func (ashs *AppStatusHandlerStub) SetUInt64Value(key string, value uint64)

SetUInt64Value will call the handler of the stub for setting an uint64 value

Jump to

Keyboard shortcuts

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