server

package
v0.1.167 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EphemeralStorage added in v0.1.73

func EphemeralStorage() ephemeralStorageOption

Types

type Option added in v0.1.86

type Option interface {
	// contains filtered or unexported methods
}

type Server

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

func New

func New(log *zap.Logger, options ...Option) *Server

New creates a new SHAR server. Leave the exporter nil if telemetry is not required

func (*Server) Listen

func (s *Server) Listen(natsURL string, grpcPort int)

Listen starts the GRPC server for both serving requests, and thw GRPC health endpoint.

func (*Server) Ready added in v0.1.66

func (s *Server) Ready() bool

func (*Server) Shutdown added in v0.1.66

func (s *Server) Shutdown()

Shutdown gracefully shuts down the GRPC server, and requests that

Jump to

Keyboard shortcuts

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