rpc

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBackendMiddleware

func CheckBackendMiddleware(s *Service) grpc.UnaryServerInterceptor

func CheckBackendStreamMiddleware

func CheckBackendStreamMiddleware(s *Service) grpc.StreamServerInterceptor

func ConditionalMiddleware

func ConditionalMiddleware(s *Service) grpc.UnaryServerInterceptor

func ConditionalStreamMiddleware

func ConditionalStreamMiddleware(s *Service) grpc.StreamServerInterceptor

func LoggingInterceptor

func LoggingInterceptor(s *Service) grpc.UnaryServerInterceptor

func LoggingStreamInterceptor

func LoggingStreamInterceptor(s *Service) grpc.StreamServerInterceptor

func StartGRPCListener

func StartGRPCListener(tlsConfig *tls.Config, addr string, cfg *config.Config) (func(ctx context.Context) error, controller.Service, error)

Types

type Service

func New

func New(cfg *config.Config) *Service

func (*Service) AddRoutingRule added in v0.5.4

func (s *Service) AddRoutingRule(ctx context.Context, request *common.AddRoutingRuleRequest) (*common.Empty, error)

func (*Service) GetBackendStats

func (s *Service) GetBackendStats(ctx context.Context, _ *common.Empty) (*common.BackendStatsResponse, error)

func (*Service) GetBalancerInfo added in v0.5.4

func (s *Service) GetBalancerInfo(ctx context.Context, request *common.BalancerInfoRequest) (*common.BalancerInfoResponse, error)

func (*Service) GetBaseInfo

func (s *Service) GetBaseInfo(_ context.Context, _ *common.Empty) (*common.BaseInfoResponse, error)

func (*Service) GetLogs

func (s *Service) GetLogs(_ *common.Empty, stream common.NodeService_GetLogsServer) error

func (*Service) GetOutboundsLatency added in v0.4.1

func (s *Service) GetOutboundsLatency(ctx context.Context, request *common.LatencyRequest) (*common.LatencyResponse, error)

func (*Service) GetStats

func (s *Service) GetStats(ctx context.Context, request *common.StatRequest) (*common.StatResponse, error)

func (*Service) GetSystemStats

func (s *Service) GetSystemStats(ctx context.Context, _ *common.Empty) (*common.SystemStatsResponse, error)

func (*Service) GetUserOnlineIpListStats

func (s *Service) GetUserOnlineIpListStats(ctx context.Context, request *common.StatRequest) (*common.StatsOnlineIpListResponse, error)

func (*Service) GetUserOnlineStats

func (s *Service) GetUserOnlineStats(ctx context.Context, request *common.StatRequest) (*common.OnlineStatResponse, error)

func (*Service) ListRoutingRules added in v0.5.4

func (s *Service) ListRoutingRules(ctx context.Context, _ *common.Empty) (*common.RoutingRulesResponse, error)

func (*Service) OverrideBalancerTarget added in v0.5.4

func (s *Service) OverrideBalancerTarget(ctx context.Context, request *common.OverrideBalancerTargetRequest) (*common.Empty, error)

func (*Service) RemoveRoutingRule added in v0.5.4

func (s *Service) RemoveRoutingRule(ctx context.Context, request *common.RemoveRoutingRuleRequest) (*common.Empty, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context, data *common.Backend) (*common.BaseInfoResponse, error)

func (*Service) Stop

func (s *Service) Stop(_ context.Context, _ *common.Empty) (*common.Empty, error)

func (*Service) SyncUser

func (*Service) SyncUsers

func (s *Service) SyncUsers(ctx context.Context, users *common.Users) (*common.Empty, error)

func (*Service) SyncUsersChunked added in v0.2.0

func (s *Service) SyncUsersChunked(stream grpc.ClientStreamingServer[common.UsersChunk, common.Empty]) error

func (*Service) TestRoute added in v0.5.4

func (s *Service) TestRoute(ctx context.Context, request *common.TestRouteRequest) (*common.RouteResult, error)

Jump to

Keyboard shortcuts

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