server

package
v0.0.0-...-821c574 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: BSD-3-Clause Imports: 12 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
}

func NewFromConfig

func NewFromConfig(ctx context.Context, cfg *config.Config) (*Server, error)

func NewWithInsecureDefaults

func NewWithInsecureDefaults(ctx context.Context) (*Server, error)

func (*Server) AddReport

func (srv *Server) AddReport(ctx context.Context, report *proto.Report) (*proto.AddReportResponse, error)

func (*Server) Done

func (srv *Server) Done() <-chan struct{}

func (*Server) GetAuthorizationToken

func (srv *Server) GetAuthorizationToken(ctx context.Context, req *proto.TokenRequest) (*proto.TokenResponse, error)

func (*Server) GetDiagnosisKeys

func (srv *Server) GetDiagnosisKeys(req *proto.GetKeyRequest, client proto.DiagnosisDB_GetDiagnosisKeysServer) error

func (*Server) ServeGRPC

func (srv *Server) ServeGRPC() error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP() error

func (*Server) Shutdown

func (srv *Server) Shutdown() error

Jump to

Keyboard shortcuts

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