adminserver

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represents an admin server type.

func New

func New(
	bindAddr string,
	port int,
	rep repository.Repository,
	peppers *pepper.Keys,
	hk *hook.Hooks,
) *Server

New returns a new initialized admin server.

func (*Server) Start

func (s *Server) Start(_ context.Context) error

Start starts admin server.

func (*Server) Stop

func (s *Server) Stop(_ context.Context) error

Stop stops admin server.

Jump to

Keyboard shortcuts

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