grpc

package
v0.0.0-...-4bfcbfc Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestInvalid = errors.New("603", "Apply Request invalid")
)

Functions

func ErrGrpcListener

func ErrGrpcListener(err error) error

func ErrGrpcServer

func ErrGrpcServer(err error) error

func ErrPanic

func ErrPanic(r interface{}) error

func Start

func Start(s *Service, tr tracing.Handler) error

Start starts grpc server

Types

type Service

type Service struct {
	Name      string    `json:"name"`
	Port      string    `json:"port"`
	Version   string    `json:"version"`
	StartedAt time.Time `json:"startedat"`
	TraceURL  string    `json:"traceurl"`
	Handler   adapter.Handler
	Channel   chan interface{}
}

Service object holds all the information about the server parameters.

func (*Service) ApplyOperation

func (s *Service) ApplyOperation(ctx context.Context, req *meshes.ApplyRuleRequest) (*meshes.ApplyRuleResponse, error)

ApplyOperation is the handler function for the method ApplyOperation.

func (*Service) CreateMeshInstance

CreateMeshInstance is the handler function for the method CreateMeshInstance.

func (*Service) MeshName

MeshName is the handler function for the method MeshName.

func (*Service) StreamEvents

StreamEvents is the handler function for the method StreamEvents.

func (*Service) SupportedOperations

SupportedOperations is the handler function for the method SupportedOperations.

Jump to

Keyboard shortcuts

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