speedlegrpcadapter

package
v0.0.0-...-1643d90 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: UPL-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

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

Speedle grpc server supports authorization template.

func NewGrpcServer

func NewGrpcServer(addr string) (*GrpcServer, error)

NewGrpcServer creates a new speedle grpc server from given args.

func (*GrpcServer) Addr

func (s *GrpcServer) Addr() string

Addr returns the listening address of the server

func (*GrpcServer) Close

func (s *GrpcServer) Close() error

Close gracefully shuts down the server

func (*GrpcServer) HandleAuthorization

func (*GrpcServer) Run

func (s *GrpcServer) Run()

Run starts the server run

func (*GrpcServer) Wait

func (s *GrpcServer) Wait() error

Wait waits for server to stop

type Server

type Server interface {
	Addr() string
	Close() error
	Run(shutdown chan error)
}

Server is basic server interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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