api

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 8 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProcessNotInitialized = errors.New("process not initialized")
)

Functions

This section is empty.

Types

type InitGracefulShutdownRequest

type InitGracefulShutdownRequest interface {
	ShutdownCallbackDef() ShutdownCallbackDef
}

func NewInitGracefulShutdownRequest

func NewInitGracefulShutdownRequest(shutdownCallbackDef ShutdownCallbackDef) InitGracefulShutdownRequest

type MockInitGracefulShutdownRequest

type MockInitGracefulShutdownRequest struct {
	mock.Mock
}

MockInitGracefulShutdownRequest is an autogenerated mock type for the InitGracefulShutdownRequest type

func NewMockInitGracefulShutdownRequest

func NewMockInitGracefulShutdownRequest(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInitGracefulShutdownRequest

NewMockInitGracefulShutdownRequest creates a new instance of MockInitGracefulShutdownRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockInitGracefulShutdownRequest) EXPECT

func (*MockInitGracefulShutdownRequest) ShutdownCallbackDef

func (_m *MockInitGracefulShutdownRequest) ShutdownCallbackDef() ShutdownCallbackDef

ShutdownCallbackDef provides a mock function with given fields:

type MockInitGracefulShutdownRequest_Expecter

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

func (*MockInitGracefulShutdownRequest_Expecter) ShutdownCallbackDef

ShutdownCallbackDef is a helper method to define mock.On call

type MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call

type MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call struct {
	*mock.Call
}

MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutdownCallbackDef'

func (*MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call) Return

func (*MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call) Run

func (*MockInitGracefulShutdownRequest_ShutdownCallbackDef_Call) RunAndReturn

type MockShutdownCallback

type MockShutdownCallback struct {
	mock.Mock
}

MockShutdownCallback is an autogenerated mock type for the ShutdownCallback type

func NewMockShutdownCallback

func NewMockShutdownCallback(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockShutdownCallback

NewMockShutdownCallback creates a new instance of MockShutdownCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockShutdownCallback) EXPECT

func (*MockShutdownCallback) Run

func (_m *MockShutdownCallback) Run(ctx context.Context)

Run provides a mock function with given fields: ctx

type MockShutdownCallbackDef

type MockShutdownCallbackDef struct {
	mock.Mock
}

MockShutdownCallbackDef is an autogenerated mock type for the ShutdownCallbackDef type

func NewMockShutdownCallbackDef

func NewMockShutdownCallbackDef(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockShutdownCallbackDef

NewMockShutdownCallbackDef creates a new instance of MockShutdownCallbackDef. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockShutdownCallbackDef) EXPECT

func (*MockShutdownCallbackDef) Headers

func (_m *MockShutdownCallbackDef) Headers() map[string]string

Headers provides a mock function with given fields:

func (*MockShutdownCallbackDef) Method

func (_m *MockShutdownCallbackDef) Method() string

Method provides a mock function with given fields:

func (*MockShutdownCallbackDef) URL

func (_m *MockShutdownCallbackDef) URL() string

URL provides a mock function with given fields:

type MockShutdownCallbackDef_Expecter

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

func (*MockShutdownCallbackDef_Expecter) Headers

Headers is a helper method to define mock.On call

func (*MockShutdownCallbackDef_Expecter) Method

Method is a helper method to define mock.On call

func (*MockShutdownCallbackDef_Expecter) URL

URL is a helper method to define mock.On call

type MockShutdownCallbackDef_Headers_Call

type MockShutdownCallbackDef_Headers_Call struct {
	*mock.Call
}

MockShutdownCallbackDef_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'

func (*MockShutdownCallbackDef_Headers_Call) Return

func (*MockShutdownCallbackDef_Headers_Call) Run

func (*MockShutdownCallbackDef_Headers_Call) RunAndReturn

type MockShutdownCallbackDef_Method_Call

type MockShutdownCallbackDef_Method_Call struct {
	*mock.Call
}

MockShutdownCallbackDef_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'

func (*MockShutdownCallbackDef_Method_Call) Return

func (*MockShutdownCallbackDef_Method_Call) Run

func (*MockShutdownCallbackDef_Method_Call) RunAndReturn

type MockShutdownCallbackDef_URL_Call

type MockShutdownCallbackDef_URL_Call struct {
	*mock.Call
}

MockShutdownCallbackDef_URL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URL'

func (*MockShutdownCallbackDef_URL_Call) Return

func (*MockShutdownCallbackDef_URL_Call) Run

func (*MockShutdownCallbackDef_URL_Call) RunAndReturn

type MockShutdownCallback_Expecter

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

func (*MockShutdownCallback_Expecter) Run

Run is a helper method to define mock.On call

  • ctx context.Context

type MockShutdownCallback_Run_Call

type MockShutdownCallback_Run_Call struct {
	*mock.Call
}

MockShutdownCallback_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*MockShutdownCallback_Run_Call) Return

func (*MockShutdownCallback_Run_Call) Run

func (*MockShutdownCallback_Run_Call) RunAndReturn

type ShutdownCallback

type ShutdownCallback interface {
	Run(ctx context.Context)
}

type ShutdownCallbackDef

type ShutdownCallbackDef interface {
	URL() string
	Method() string
	Headers() map[string]string
}

func NewShutdownCallbackDef

func NewShutdownCallbackDef(url string, method string, headers map[string]string) ShutdownCallbackDef

type Status

type Status int64
const (
	StatusUnknown Status = iota
	StatusRunning
	StatusInShutdown
	StatusStopped
)

func (Status) String

func (s Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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