proto

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ipfilter_proto_ipfilter_proto protoreflect.FileDescriptor

Functions

func RegisterIPFilterServer

func RegisterIPFilterServer(s *grpc.Server, srv IPFilterServer)

Types

type CheckIPRequest

type CheckIPRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckIPRequest) Descriptor deprecated

func (*CheckIPRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckIPRequest.ProtoReflect.Descriptor instead.

func (*CheckIPRequest) GetIp

func (x *CheckIPRequest) GetIp() string

func (*CheckIPRequest) ProtoMessage

func (*CheckIPRequest) ProtoMessage()

func (*CheckIPRequest) ProtoReflect

func (x *CheckIPRequest) ProtoReflect() protoreflect.Message

func (*CheckIPRequest) Reset

func (x *CheckIPRequest) Reset()

func (*CheckIPRequest) String

func (x *CheckIPRequest) String() string

type IPFilterClient

type IPFilterClient interface {
	CheckIP(ctx context.Context, in *CheckIPRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Reload(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

IPFilterClient is the client API for IPFilter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewIPFilterClient

func NewIPFilterClient(cc grpc.ClientConnInterface) IPFilterClient

type IPFilterServer

type IPFilterServer interface {
	CheckIP(context.Context, *CheckIPRequest) (*emptypb.Empty, error)
	Reload(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

IPFilterServer is the server API for IPFilter service.

type UnimplementedIPFilterServer

type UnimplementedIPFilterServer struct {
}

UnimplementedIPFilterServer can be embedded to have forward compatible implementations.

func (*UnimplementedIPFilterServer) CheckIP

func (*UnimplementedIPFilterServer) Reload

Jump to

Keyboard shortcuts

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