servergrpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT 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 {
	render.UnimplementedChartAPIServer
	// contains filtered or unexported fields
}

Server implements gRPC render.ChartAPIServer.

func NewServer

func NewServer(log *zerolog.Logger, b backend.Backend, gRPCCfg config.GRPCConfig, mrec metric.Recorder) (*Server, error)

NewServer configures a new Server.

func (*Server) Address

func (s *Server) Address() string

Address returns listener address.

func (*Server) CreateChart

func (s *Server) CreateChart(ctx context.Context, req *render.CreateChartRequest) (*render.ChartReply, error)

CreateChart implements render.ChartAPIServer.CreateChart.

nolint: wrapcheck

func (*Server) GetChart

func (s *Server) GetChart(_ context.Context, req *render.GetChartRequest) (*render.ChartReply, error)

GetChart implements render.ChartAPIServer.GetChart. It returns codes.NotFound until storage is implemented.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve starts gRPC server to serve requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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