Documentation ¶
Index ¶
- Variables
- func RegisterAppServiceServer(s grpc.ServiceRegistrar, srv AppServiceServer)
- type AppServiceClient
- type AppServiceServer
- type EmptyRequest
- type ServerResponse
- type SubnetRequest
- type UnimplementedAppServiceServer
- func (UnimplementedAppServiceServer) AddToBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error)
- func (UnimplementedAppServiceServer) AddToWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error)
- func (UnimplementedAppServiceServer) RemoveFromBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error)
- func (UnimplementedAppServiceServer) RemoveFromWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error)
- func (UnimplementedAppServiceServer) ResetBucket(context.Context, *EmptyRequest) (*ServerResponse, error)
- type UnsafeAppServiceServer
Constants ¶
This section is empty.
Variables ¶
var AppService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.AppService", HandlerType: (*AppServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResetBucket", Handler: _AppService_ResetBucket_Handler, }, { MethodName: "AddToWhitelist", Handler: _AppService_AddToWhitelist_Handler, }, { MethodName: "AddToBlacklist", Handler: _AppService_AddToBlacklist_Handler, }, { MethodName: "RemoveFromWhitelist", Handler: _AppService_RemoveFromWhitelist_Handler, }, { MethodName: "RemoveFromBlacklist", Handler: _AppService_RemoveFromBlacklist_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "AppService.proto", }
AppService_ServiceDesc is the grpc.ServiceDesc for AppService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_AppService_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAppServiceServer ¶
func RegisterAppServiceServer(s grpc.ServiceRegistrar, srv AppServiceServer)
Types ¶
type AppServiceClient ¶
type AppServiceClient interface { ResetBucket(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ServerResponse, error) AddToWhitelist(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*ServerResponse, error) AddToBlacklist(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*ServerResponse, error) RemoveFromWhitelist(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*ServerResponse, error) RemoveFromBlacklist(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*ServerResponse, error) }
AppServiceClient is the client API for AppService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAppServiceClient ¶
func NewAppServiceClient(cc grpc.ClientConnInterface) AppServiceClient
type AppServiceServer ¶
type AppServiceServer interface { ResetBucket(context.Context, *EmptyRequest) (*ServerResponse, error) AddToWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error) AddToBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error) RemoveFromWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error) RemoveFromBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error) // contains filtered or unexported methods }
AppServiceServer is the server API for AppService service. All implementations must embed UnimplementedAppServiceServer for forward compatibility
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type ServerResponse ¶
type ServerResponse struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ServerResponse) Descriptor
deprecated
func (*ServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerResponse.ProtoReflect.Descriptor instead.
func (*ServerResponse) GetData ¶
func (x *ServerResponse) GetData() string
func (*ServerResponse) ProtoMessage ¶
func (*ServerResponse) ProtoMessage()
func (*ServerResponse) ProtoReflect ¶
func (x *ServerResponse) ProtoReflect() protoreflect.Message
func (*ServerResponse) Reset ¶
func (x *ServerResponse) Reset()
func (*ServerResponse) String ¶
func (x *ServerResponse) String() string
type SubnetRequest ¶
type SubnetRequest struct { Subnet string `protobuf:"bytes,1,opt,name=subnet,proto3" json:"subnet,omitempty"` // contains filtered or unexported fields }
func (*SubnetRequest) Descriptor
deprecated
func (*SubnetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubnetRequest.ProtoReflect.Descriptor instead.
func (*SubnetRequest) GetSubnet ¶
func (x *SubnetRequest) GetSubnet() string
func (*SubnetRequest) ProtoMessage ¶
func (*SubnetRequest) ProtoMessage()
func (*SubnetRequest) ProtoReflect ¶
func (x *SubnetRequest) ProtoReflect() protoreflect.Message
func (*SubnetRequest) Reset ¶
func (x *SubnetRequest) Reset()
func (*SubnetRequest) String ¶
func (x *SubnetRequest) String() string
type UnimplementedAppServiceServer ¶
type UnimplementedAppServiceServer struct { }
UnimplementedAppServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAppServiceServer) AddToBlacklist ¶
func (UnimplementedAppServiceServer) AddToBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error)
func (UnimplementedAppServiceServer) AddToWhitelist ¶
func (UnimplementedAppServiceServer) AddToWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error)
func (UnimplementedAppServiceServer) RemoveFromBlacklist ¶
func (UnimplementedAppServiceServer) RemoveFromBlacklist(context.Context, *SubnetRequest) (*ServerResponse, error)
func (UnimplementedAppServiceServer) RemoveFromWhitelist ¶
func (UnimplementedAppServiceServer) RemoveFromWhitelist(context.Context, *SubnetRequest) (*ServerResponse, error)
func (UnimplementedAppServiceServer) ResetBucket ¶
func (UnimplementedAppServiceServer) ResetBucket(context.Context, *EmptyRequest) (*ServerResponse, error)
type UnsafeAppServiceServer ¶
type UnsafeAppServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAppServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppServiceServer will result in compilation errors.