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) CheckIP(context.Context, *CheckIPRequest) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.