v1

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func New

func New(deps Deps) *API

New создает gRPC API поверх use-case слоев.

func (*API) Allow

func (a *API) Allow(ctx context.Context, req *grpcv1.AllowRequest) (*grpcv1.AllowResponse, error)

func (*API) Block

func (*API) GetSettings

func (a *API) GetSettings(
	ctx context.Context,
	_ *emptypb.Empty,
) (*grpcv1.GetManagementSettingsResponse, error)

func (*API) Health

func (a *API) Health(ctx context.Context, _ *emptypb.Empty) (*grpcv1.HealthResponse, error)

func (*API) Stats

func (a *API) Stats(ctx context.Context, _ *emptypb.Empty) (*grpcv1.StatsResponse, error)

type Deps

type Deps struct {
	Filter     filter.UseCase
	Management management.UseCase
}

Jump to

Keyboard shortcuts

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