connect

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingMetadata = status.Errorf(codes.InvalidArgument, "missing metadata")
	ErrInvalidToken    = status.Errorf(codes.Unauthenticated, "invalid token")
)

Functions

func ClientStreamInterceptor

func ClientStreamInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)

func EdgeHealthCheck

func EdgeHealthCheck(writer http.ResponseWriter, request *http.Request)

func InitRegister added in v0.8.2

func InitRegister() error

func InitToken

func InitToken(nodeName, tk string) error

func IsEndpointIp

func IsEndpointIp(addr string) bool

func ServerStreamInterceptor

func ServerStreamInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

func StartChannelzServer

func StartChannelzServer(addr string)

func StartClient

func StartClient() (*grpc.ClientConn, ctx.Context, ctx.CancelFunc, error)

func StartLogServer

func StartLogServer(mode string)

func StartMetricsServer added in v0.5.0

func StartMetricsServer()

func StartSendClient

func StartSendClient()

func StartServer

func StartServer()

func SyncEndPoints added in v0.5.0

func SyncEndPoints()

func SyncPodIP added in v0.5.0

func SyncPodIP()

func SyncRoute added in v0.8.2

func SyncRoute(path string)

Types

type RegisterNode added in v0.8.2

type RegisterNode struct {
	ClientSet *kubernetes.Clientset
	Update    chan struct{}
}

type RouteCache added in v0.8.2

type RouteCache struct {
	EdgeNode        map[string]string
	CloudNode       map[string]string
	ServicesMap     map[string]string
	UserServicesMap map[string]string
}
var Route *RouteCache

Jump to

Keyboard shortcuts

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