server

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitListenURL

func SplitListenURL(listenOn string) (string, string, error)

Types

type Server

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

func New

func New(listenURL string, store stores.NamedStore, secretManager config.SecretsManager, chunkSize int, logger log.Logger) *Server

func (*Server) ListenAddress

func (serv *Server) ListenAddress() net.Addr

func (*Server) Serve

func (serv *Server) Serve() error

func (*Server) Stop

func (serv *Server) Stop()

func (*Server) Wait

func (serv *Server) Wait(ctx context.Context) error

Wait until server is listening or context is done

Jump to

Keyboard shortcuts

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