server

package
v1.1.1139 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionTag string
	CommitHash string
	BuildDate  string
)

The following variables are set by -ldflags at build time.

Functions

This section is empty.

Types

type Server

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

Server is the shar server type responsible for hosting the SHAR API.

func New

func New(options ...option.Option) (*Server, error)

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

func (*Server) GetEndPoint added in v1.0.623

func (s *Server) GetEndPoint() string

GetEndPoint will return the URL of the GRPC health endpoint for the shar server

func (*Server) Listen

func (s *Server) Listen() error

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

func (*Server) Ready added in v0.1.66

func (s *Server) Ready() bool

Ready returns true if the SHAR server is servicing API calls.

func (*Server) Shutdown added in v0.1.66

func (s *Server) Shutdown()

Shutdown gracefully shuts down the GRPC server, and requests that

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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