grpc

package
v0.0.0-...-6b7e295 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrGrpcListener

func ErrGrpcListener(err error) error

ErrGrpcListener is the error object for grpc listener

func ErrGrpcServer

func ErrGrpcServer(err error) error

ErrGrpcServer is the error object for grpc server

func ErrPanic

func ErrPanic(r interface{}) error

ErrPanic is the error object for panic errors

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   adaptor.Handler
}

Service object holds all the information about the server parameters.

func (*Service) ApplyOperation

func (s *Service) ApplyOperation(ctx context.Context, req *proto.ApplyRuleRequest) (*proto.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