loadbalancer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

Types

type Server

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

func New

func New(prov provider, amqpAddr, host string, httpPort, wsPort int, external string) (*Server, error)

TODO: to make this testable, need a "PublisherProvider" that will create the publisher here so we aren't hardcoding to RabbitMQ

func (*Server) APISpec

func (r *Server) APISpec() (http.HandlerFunc, error)

func (*Server) Close

func (r *Server) Close() error

func (*Server) GetEndpoint

func (*Server) RegisterGRPCGateway

func (r *Server) RegisterGRPCGateway(_ *runtime.ServeMux, _ string, _ ...grpc.DialOption)

func (*Server) RegisterGRPCHandler

func (r *Server) RegisterGRPCHandler(server *grpc.Server)

func (*Server) Start

func (r *Server) Start()

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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