api

package
v0.0.0-...-fb92606 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCClient

func NewGRPCClient(ctx context.Context, address string) generated.AppServiceClient

func RunGrpcServer

func RunGrpcServer(ctx context.Context, g *errgroup.Group, address string, services *services.Services)

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

Jump to

Keyboard shortcuts

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