server

package
v0.0.0-...-3434b8a Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 16 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 {
	Store  *store.Store
	Config *config.Config
	Secret string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, store *store.Store, cfg *config.Config) (*Server, error)

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start() error

type Status

type Status string
const (
	Success Status = "success"
	Error   Status = "error"
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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