service

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContext

func GetContext() context.Context

func SetContext

func SetContext(ctx context.Context)

Types

type Factory

type Factory interface {
	WebServerConfig() WebServerConfigService
	WebServerStatistics() WebServerStatisticsService
	WebServerStatus() WebServerStatusService
	WebServerLogWatcher() WebServerLogWatcherService
}

func New

func New(endpoint epclient.Factory) Factory

type WebServerConfigService

type WebServerConfigService interface {
	GetServerNames() (servernames []string, err error)
	Get(servername string) ([]byte, error)
	Update(servername string, config []byte) error
}

type WebServerLogWatcherService

type WebServerLogWatcherService interface {
	Watch(request *v1.WebServerLogWatchRequest) (<-chan []byte, context.CancelFunc, error)
}

type WebServerStatisticsService

type WebServerStatisticsService interface {
	Get(servername string) (*v1.Statistics, error)
}

type WebServerStatusService

type WebServerStatusService interface {
	Get() (*v1.Metrics, error)
}

Jump to

Keyboard shortcuts

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