Documentation ¶
Index ¶
- func NewGRPCClient(ctx context.Context, address string) generated.AppServiceClient
- func RunGrpcServer(ctx context.Context, g *errgroup.Group, address string, ...)
- type AppService
- func (a *AppService) AddToBlacklist(ctx context.Context, req *generated.SubnetRequest) (*generated.ServerResponse, error)
- func (a *AppService) AddToWhitelist(ctx context.Context, req *generated.SubnetRequest) (*generated.ServerResponse, error)
- func (a *AppService) RemoveFromBlacklist(ctx context.Context, req *generated.SubnetRequest) (*generated.ServerResponse, error)
- func (a *AppService) RemoveFromWhitelist(ctx context.Context, req *generated.SubnetRequest) (*generated.ServerResponse, error)
- func (a *AppService) ResetBucket(ctx context.Context, req *generated.EmptyRequest) (*generated.ServerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCClient ¶
func NewGRPCClient(ctx context.Context, address string) generated.AppServiceClient
Types ¶
type AppService ¶
type AppService struct { generated.UnimplementedAppServiceServer // contains filtered or unexported fields }
func NewAppService ¶
func NewAppService(services *services.Services) *AppService
func (*AppService) AddToBlacklist ¶
func (a *AppService) AddToBlacklist( ctx context.Context, req *generated.SubnetRequest, ) (*generated.ServerResponse, error)
func (*AppService) AddToWhitelist ¶
func (a *AppService) AddToWhitelist( ctx context.Context, req *generated.SubnetRequest, ) (*generated.ServerResponse, error)
func (*AppService) RemoveFromBlacklist ¶
func (a *AppService) RemoveFromBlacklist( ctx context.Context, req *generated.SubnetRequest, ) (*generated.ServerResponse, error)
func (*AppService) RemoveFromWhitelist ¶
func (a *AppService) RemoveFromWhitelist( ctx context.Context, req *generated.SubnetRequest, ) (*generated.ServerResponse, error)
func (*AppService) ResetBucket ¶
func (a *AppService) ResetBucket(ctx context.Context, req *generated.EmptyRequest) (*generated.ServerResponse, error)
Click to show internal directories.
Click to hide internal directories.