grpc

package
v0.0.0-...-e647751 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Name() string
	Register(s *Server) error
}

Module represents a module that can be added to a http server.

type Server

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

Server is a http 2 web server.

func NewServer

func NewServer(_ context.Context, d db.DB, m metrics.Collector) (*Server, error)

NewServer creates a new grpc web server.

func (*Server) Server

func (s *Server) Server() *grpc.Server

Server returns the server, used by modules to register themselves.

func (*Server) Start

func (s *Server) Start() error

Start starts the web server.

func (*Server) Stop

func (s *Server) Stop() error

Stop shuts down the web server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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