rpcserver

package
v1.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAddress = status.Errorf(codes.InvalidArgument, "invalid address")
View Source
var ErrInvalidAuthorization = status.Error(codes.Unauthenticated, "invalid authorization")

Functions

This section is empty.

Types

type PasswordAuth

type PasswordAuth struct {
	// contains filtered or unexported fields
}

func NewPasswordAuth

func NewPasswordAuth(password string) *PasswordAuth

func (*PasswordAuth) StreamServerInterceptor

func (auth *PasswordAuth) StreamServerInterceptor() grpc.StreamServerInterceptor

func (*PasswordAuth) UnaryServerInterceptor

func (auth *PasswordAuth) UnaryServerInterceptor() grpc.UnaryServerInterceptor

type RpcServer

type RpcServer struct {
	// contains filtered or unexported fields
}

func NewRpcServer

func NewRpcServer(cfg *config.Config) *RpcServer

func (*RpcServer) Init

func (server *RpcServer) Init() error

func (*RpcServer) Start

func (server *RpcServer) Start() chan error

func (*RpcServer) Stop

func (server *RpcServer) Stop() error

Jump to

Keyboard shortcuts

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