grpc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 9 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
}

Server struct

func New

func New(port uint16, swapAPI swapService.API, logger *logrus.Entry) *Server

New server

func (Server) AddMetrics

func (s Server) AddMetrics(swapMx *swapService.Metrics)

AddMetrics adds metrics counters and should be called before service launch

func (*Server) Task

func (s *Server) Task(token *gotask.Token)

Task loop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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