Documentation ¶
Index ¶
- Variables
- func RegisterCheckServer(s *grpc.Server, srv CheckServer)
- type CheckClient
- type CheckRequest
- func (*CheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRequest) GetName() string
- func (x *CheckRequest) GetResource() Resource
- func (*CheckRequest) ProtoMessage()
- func (x *CheckRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRequest) Reset()
- func (x *CheckRequest) String() string
- type CheckResponse
- func (*CheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse) GetReason() string
- func (x *CheckResponse) GetResult() bool
- func (x *CheckResponse) GetTTL() int32
- func (*CheckResponse) ProtoMessage()
- func (x *CheckResponse) ProtoReflect() protoreflect.Message
- func (x *CheckResponse) Reset()
- func (x *CheckResponse) String() string
- type CheckServer
- type Resource
- type ResourcesResponse
- func (*ResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcesResponse) GetResources() []Resource
- func (*ResourcesResponse) ProtoMessage()
- func (x *ResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *ResourcesResponse) Reset()
- func (x *ResourcesResponse) String() string
- type UnimplementedCheckServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Resource_name = map[int32]string{ 0: "IPV4", 1: "IPV6", 2: "DOMAIN", 3: "MD5", 4: "SHA1", 5: "SHA256", } Resource_value = map[string]int32{ "IPV4": 0, "IPV6": 1, "DOMAIN": 2, "MD5": 3, "SHA1": 4, "SHA256": 5, } )
Enum value maps for Resource.
View Source
var File_xlist_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCheckServer ¶
func RegisterCheckServer(s *grpc.Server, srv CheckServer)
Types ¶
type CheckClient ¶
type CheckClient interface { Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) Resources(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ResourcesResponse, error) }
CheckClient is the client API for Check service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCheckClient ¶
func NewCheckClient(cc grpc.ClientConnInterface) CheckClient
type CheckRequest ¶
type CheckRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Resource Resource `protobuf:"varint,2,opt,name=resource,proto3,enum=luids.xlist.v1.Resource" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*CheckRequest) Descriptor
deprecated
func (*CheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
func (*CheckRequest) GetName ¶
func (x *CheckRequest) GetName() string
func (*CheckRequest) GetResource ¶
func (x *CheckRequest) GetResource() Resource
func (*CheckRequest) ProtoMessage ¶
func (*CheckRequest) ProtoMessage()
func (*CheckRequest) ProtoReflect ¶
func (x *CheckRequest) ProtoReflect() protoreflect.Message
func (*CheckRequest) Reset ¶
func (x *CheckRequest) Reset()
func (*CheckRequest) String ¶
func (x *CheckRequest) String() string
type CheckResponse ¶
type CheckResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` TTL int32 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` // contains filtered or unexported fields }
func (*CheckResponse) Descriptor
deprecated
func (*CheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
func (*CheckResponse) GetReason ¶
func (x *CheckResponse) GetReason() string
func (*CheckResponse) GetResult ¶
func (x *CheckResponse) GetResult() bool
func (*CheckResponse) GetTTL ¶
func (x *CheckResponse) GetTTL() int32
func (*CheckResponse) ProtoMessage ¶
func (*CheckResponse) ProtoMessage()
func (*CheckResponse) ProtoReflect ¶
func (x *CheckResponse) ProtoReflect() protoreflect.Message
func (*CheckResponse) Reset ¶
func (x *CheckResponse) Reset()
func (*CheckResponse) String ¶
func (x *CheckResponse) String() string
type CheckServer ¶
type CheckServer interface { Check(context.Context, *CheckRequest) (*CheckResponse, error) Resources(context.Context, *empty.Empty) (*ResourcesResponse, error) }
CheckServer is the server API for Check service.
type Resource ¶
type Resource int32
enums
func (Resource) Descriptor ¶
func (Resource) Descriptor() protoreflect.EnumDescriptor
func (Resource) EnumDescriptor
deprecated
func (Resource) Number ¶
func (x Resource) Number() protoreflect.EnumNumber
func (Resource) Type ¶
func (Resource) Type() protoreflect.EnumType
type ResourcesResponse ¶
type ResourcesResponse struct { Resources []Resource `protobuf:"varint,1,rep,packed,name=resources,proto3,enum=luids.xlist.v1.Resource" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*ResourcesResponse) Descriptor
deprecated
func (*ResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResourcesResponse.ProtoReflect.Descriptor instead.
func (*ResourcesResponse) GetResources ¶
func (x *ResourcesResponse) GetResources() []Resource
func (*ResourcesResponse) ProtoMessage ¶
func (*ResourcesResponse) ProtoMessage()
func (*ResourcesResponse) ProtoReflect ¶
func (x *ResourcesResponse) ProtoReflect() protoreflect.Message
func (*ResourcesResponse) Reset ¶
func (x *ResourcesResponse) Reset()
func (*ResourcesResponse) String ¶
func (x *ResourcesResponse) String() string
type UnimplementedCheckServer ¶
type UnimplementedCheckServer struct { }
UnimplementedCheckServer can be embedded to have forward compatible implementations.
func (*UnimplementedCheckServer) Check ¶
func (*UnimplementedCheckServer) Check(context.Context, *CheckRequest) (*CheckResponse, error)
func (*UnimplementedCheckServer) Resources ¶
func (*UnimplementedCheckServer) Resources(context.Context, *empty.Empty) (*ResourcesResponse, error)
Click to show internal directories.
Click to hide internal directories.