rpc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: GPL-3.0 Imports: 21 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) GetBackendStats

func (s *Service) GetBackendStats(ctx context.Context, _ *common.Empty) (*common.BackendStatsResponse, 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) GetStats

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

func (*Service) GetSystemStats

func (s *Service) GetSystemStats(_ 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) Start

func (s *Service) Start(ctx context.Context, detail *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

Jump to

Keyboard shortcuts

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