Documentation
¶
Index ¶
- func Register(registrar grpc.ServiceRegistrar, deps Deps)
- type API
- func (a *API) Allow(ctx context.Context, req *grpcv1.AllowRequest) (*grpcv1.AllowResponse, error)
- func (a *API) Block(ctx context.Context, _ *emptypb.Empty) (*grpcv1.BlockManagementResponse, error)
- func (a *API) CreateSettings(ctx context.Context, req *grpcv1.UpsertManagementSettingsRequest) (*grpcv1.UpsertManagementSettingsResponse, error)
- func (a *API) GetSettings(ctx context.Context, _ *emptypb.Empty) (*grpcv1.GetManagementSettingsResponse, error)
- func (a *API) Health(ctx context.Context, _ *emptypb.Empty) (*grpcv1.HealthResponse, error)
- func (a *API) Stats(ctx context.Context, _ *emptypb.Empty) (*grpcv1.StatsResponse, error)
- func (a *API) UpdateSettings(ctx context.Context, req *grpcv1.UpsertManagementSettingsRequest) (*grpcv1.UpsertManagementSettingsResponse, error)
- type Deps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registrar grpc.ServiceRegistrar, deps Deps)
Register регистрирует реализации gRPC контрактов v1.
Types ¶
type API ¶
type API struct {
grpcv1.UnimplementedHealthServiceServer
grpcv1.UnimplementedFilterServiceServer
grpcv1.UnimplementedManagementServiceServer
// contains filtered or unexported fields
}
func (*API) Allow ¶
func (a *API) Allow(ctx context.Context, req *grpcv1.AllowRequest) (*grpcv1.AllowResponse, error)
func (*API) CreateSettings ¶
func (a *API) CreateSettings( ctx context.Context, req *grpcv1.UpsertManagementSettingsRequest, ) (*grpcv1.UpsertManagementSettingsResponse, error)
func (*API) GetSettings ¶
func (*API) UpdateSettings ¶
func (a *API) UpdateSettings( ctx context.Context, req *grpcv1.UpsertManagementSettingsRequest, ) (*grpcv1.UpsertManagementSettingsResponse, error)
Click to show internal directories.
Click to hide internal directories.