pb

package
v0.0.0-...-dd22d64 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

const (
	Resource_IPV4   Resource = 0
	Resource_IPV6   Resource = 1
	Resource_DOMAIN Resource = 2
	Resource_MD5    Resource = 3
	Resource_SHA1   Resource = 4
	Resource_SHA256 Resource = 5
)

func (Resource) Descriptor

func (Resource) Descriptor() protoreflect.EnumDescriptor

func (Resource) Enum

func (x Resource) Enum() *Resource

func (Resource) EnumDescriptor deprecated

func (Resource) EnumDescriptor() ([]byte, []int)

Deprecated: Use Resource.Descriptor instead.

func (Resource) Number

func (x Resource) Number() protoreflect.EnumNumber

func (Resource) String

func (x Resource) String() string

func (Resource) Type

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) Resources

Jump to

Keyboard shortcuts

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