admin

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAddDeleteRequest

type HostAddDeleteRequest struct {
	Host          string
	LatencyConfig *config.LatencyConfig
	ErrorConfig   map[string]config.ErrorConfig
	UriConfig     map[string]config.UriConfig
}

type HostsConfigAdminService added in v1.2.0

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

func NewHostsConfigAdminService added in v1.2.0

func NewHostsConfigAdminService(hostsConfig *config.HostsConfig) *HostsConfigAdminService

func (*HostsConfigAdminService) AddUpdateHost added in v1.2.0

func (h *HostsConfigAdminService) AddUpdateHost(addRequest HostAddDeleteRequest) (*config.HostConfig, error)

func (*HostsConfigAdminService) AddUpdateHostErrors added in v1.2.0

func (h *HostsConfigAdminService) AddUpdateHostErrors(addErrorsRequest HostAddDeleteRequest) (*config.HostConfig, error)

func (*HostsConfigAdminService) AddUpdateHostLatency added in v1.2.0

func (h *HostsConfigAdminService) AddUpdateHostLatency(addLatencyRequest HostAddDeleteRequest) (*config.HostConfig, error)

func (*HostsConfigAdminService) AddUpdateHostUris added in v1.2.0

func (h *HostsConfigAdminService) AddUpdateHostUris(addUrisRequest HostAddDeleteRequest) (*config.HostConfig, error)

func (*HostsConfigAdminService) DeleteHost added in v1.2.0

func (h *HostsConfigAdminService) DeleteHost(host string)

func (*HostsConfigAdminService) DeleteHostError added in v1.2.0

func (h *HostsConfigAdminService) DeleteHostError(host, errorCode string) (*config.HostConfig, error)

func (*HostsConfigAdminService) DeleteHostLatency added in v1.2.0

func (h *HostsConfigAdminService) DeleteHostLatency(host string) (*config.HostConfig, error)

func (*HostsConfigAdminService) GetHostConfig added in v1.2.0

func (h *HostsConfigAdminService) GetHostConfig(host string) *config.HostConfig

func (*HostsConfigAdminService) GetHostsConfig added in v1.2.0

func (h *HostsConfigAdminService) GetHostsConfig() *config.HostsConfig

type MockAddDeleteRequest

type MockAddDeleteRequest struct {
	Host   string
	URI    string
	Method string
	Data   *[]byte
}

type MockAdminService added in v1.2.0

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

func NewMockAdminService added in v1.2.0

func NewMockAdminService(contentService content.ContentService) *MockAdminService

func (*MockAdminService) AddUpdateMock added in v1.2.0

func (m *MockAdminService) AddUpdateMock(addRequest MockAddDeleteRequest, uuid string) error

func (*MockAdminService) DeleteMock added in v1.2.0

func (m *MockAdminService) DeleteMock(addRequest MockAddDeleteRequest, uuid string) error

Jump to

Keyboard shortcuts

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