service

package
v0.0.0-...-703b195 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminService

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

func NewAdminService

func NewAdminService(config config.Config, logger *zap.Logger) *AdminService

func (*AdminService) Close

func (s *AdminService) Close()

Close stops the server and wait for them to exit.

func (*AdminService) Serve

func (s *AdminService) Serve() (string, error)

Serve starts the service and returns the server address.

Note this won't always be the same as the configured address, such as if port 0 used the system will assign a free port.

Jump to

Keyboard shortcuts

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