msg

package
v0.0.0-...-6246eb3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Unlicense Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Check_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "msg.Check",
	HandlerType: (*CheckServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SearchID",
			Handler:    _Check_SearchID_Handler,
		},
		{
			MethodName: "SearchIP4",
			Handler:    _Check_SearchIP4_Handler,
		},
		{
			MethodName: "SearchURL",
			Handler:    _Check_SearchURL_Handler,
		},
		{
			MethodName: "SearchDomain",
			Handler:    _Check_SearchDomain_Handler,
		},
		{
			MethodName: "Stat",
			Handler:    _Check_Stat_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _Check_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "msg/msg.proto",
}

Check_ServiceDesc is the grpc.ServiceDesc for Check service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_msg_msg_proto protoreflect.FileDescriptor

Functions

func RegisterCheckServer

func RegisterCheckServer(s grpc.ServiceRegistrar, srv CheckServer)

Types

type CheckClient

type CheckClient interface {
	SearchID(ctx context.Context, in *IDRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	SearchIP4(ctx context.Context, in *IP4Request, opts ...grpc.CallOption) (*SearchResponse, error)
	SearchURL(ctx context.Context, in *URLRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	SearchDomain(ctx context.Context, in *DomainRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongResponse, error)
}

CheckClient is the client API for Check 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 NewCheckClient

func NewCheckClient(cc grpc.ClientConnInterface) CheckClient

type CheckServer

type CheckServer interface {
	SearchID(context.Context, *IDRequest) (*SearchResponse, error)
	SearchIP4(context.Context, *IP4Request) (*SearchResponse, error)
	SearchURL(context.Context, *URLRequest) (*SearchResponse, error)
	SearchDomain(context.Context, *DomainRequest) (*SearchResponse, error)
	Stat(context.Context, *StatRequest) (*StatResponse, error)
	Ping(context.Context, *PingRequest) (*PongResponse, error)
	// contains filtered or unexported methods
}

CheckServer is the server API for Check service. All implementations must embed UnimplementedCheckServer for forward compatibility

type Content

type Content struct {
	Id                 int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	RegistryUpdateTime int64  `protobuf:"varint,2,opt,name=registryUpdateTime,proto3" json:"registryUpdateTime,omitempty"`
	BlockType          int32  `protobuf:"varint,3,opt,name=blockType,proto3" json:"blockType,omitempty"`
	Ip4                uint32 `protobuf:"varint,4,opt,name=ip4,proto3" json:"ip4,omitempty"`
	Domain             string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"`
	Url                string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
	Pack               []byte `protobuf:"bytes,7,opt,name=pack,proto3" json:"pack,omitempty"`
	// contains filtered or unexported fields
}

func (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetBlockType

func (x *Content) GetBlockType() int32

func (*Content) GetDomain

func (x *Content) GetDomain() string

func (*Content) GetId

func (x *Content) GetId() int32

func (*Content) GetIp4

func (x *Content) GetIp4() uint32

func (*Content) GetPack

func (x *Content) GetPack() []byte

func (*Content) GetRegistryUpdateTime

func (x *Content) GetRegistryUpdateTime() int64

func (*Content) GetUrl

func (x *Content) GetUrl() string

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type DomainRequest

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

func (*DomainRequest) Descriptor deprecated

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

Deprecated: Use DomainRequest.ProtoReflect.Descriptor instead.

func (*DomainRequest) GetQuery

func (x *DomainRequest) GetQuery() string

func (*DomainRequest) ProtoMessage

func (*DomainRequest) ProtoMessage()

func (*DomainRequest) ProtoReflect

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

func (*DomainRequest) Reset

func (x *DomainRequest) Reset()

func (*DomainRequest) String

func (x *DomainRequest) String() string

type IDRequest

type IDRequest struct {
	Query uint64 `protobuf:"varint,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*IDRequest) Descriptor deprecated

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

Deprecated: Use IDRequest.ProtoReflect.Descriptor instead.

func (*IDRequest) GetQuery

func (x *IDRequest) GetQuery() uint64

func (*IDRequest) ProtoMessage

func (*IDRequest) ProtoMessage()

func (*IDRequest) ProtoReflect

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

func (*IDRequest) Reset

func (x *IDRequest) Reset()

func (*IDRequest) String

func (x *IDRequest) String() string

type IP4Request

type IP4Request struct {
	Query uint32 `protobuf:"varint,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*IP4Request) Descriptor deprecated

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

Deprecated: Use IP4Request.ProtoReflect.Descriptor instead.

func (*IP4Request) GetQuery

func (x *IP4Request) GetQuery() uint32

func (*IP4Request) ProtoMessage

func (*IP4Request) ProtoMessage()

func (*IP4Request) ProtoReflect

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

func (*IP4Request) Reset

func (x *IP4Request) Reset()

func (*IP4Request) String

func (x *IP4Request) String() string

type PingRequest

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

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetPing

func (x *PingRequest) GetPing() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PongResponse

type PongResponse struct {
	Error              string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	RegistryUpdateTime int64  `protobuf:"varint,2,opt,name=registryUpdateTime,proto3" json:"registryUpdateTime,omitempty"`
	Pong               string `protobuf:"bytes,3,opt,name=pong,proto3" json:"pong,omitempty"`
	// contains filtered or unexported fields
}

func (*PongResponse) Descriptor deprecated

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

Deprecated: Use PongResponse.ProtoReflect.Descriptor instead.

func (*PongResponse) GetError

func (x *PongResponse) GetError() string

func (*PongResponse) GetPong

func (x *PongResponse) GetPong() string

func (*PongResponse) GetRegistryUpdateTime

func (x *PongResponse) GetRegistryUpdateTime() int64

func (*PongResponse) ProtoMessage

func (*PongResponse) ProtoMessage()

func (*PongResponse) ProtoReflect

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

func (*PongResponse) Reset

func (x *PongResponse) Reset()

func (*PongResponse) String

func (x *PongResponse) String() string

type SearchResponse

type SearchResponse struct {
	Error              string     `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	RegistryUpdateTime int64      `protobuf:"varint,2,opt,name=registryUpdateTime,proto3" json:"registryUpdateTime,omitempty"`
	Results            []*Content `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetError

func (x *SearchResponse) GetError() string

func (*SearchResponse) GetRegistryUpdateTime

func (x *SearchResponse) GetRegistryUpdateTime() int64

func (*SearchResponse) GetResults

func (x *SearchResponse) GetResults() []*Content

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type StatRequest

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

func (*StatRequest) Descriptor deprecated

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

Deprecated: Use StatRequest.ProtoReflect.Descriptor instead.

func (*StatRequest) GetQuery

func (x *StatRequest) GetQuery() string

func (*StatRequest) ProtoMessage

func (*StatRequest) ProtoMessage()

func (*StatRequest) ProtoReflect

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

func (*StatRequest) Reset

func (x *StatRequest) Reset()

func (*StatRequest) String

func (x *StatRequest) String() string

type StatResponse

type StatResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Stats []byte `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*StatResponse) Descriptor deprecated

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

Deprecated: Use StatResponse.ProtoReflect.Descriptor instead.

func (*StatResponse) GetError

func (x *StatResponse) GetError() string

func (*StatResponse) GetStats

func (x *StatResponse) GetStats() []byte

func (*StatResponse) ProtoMessage

func (*StatResponse) ProtoMessage()

func (*StatResponse) ProtoReflect

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

func (*StatResponse) Reset

func (x *StatResponse) Reset()

func (*StatResponse) String

func (x *StatResponse) String() string

type URLRequest

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

func (*URLRequest) Descriptor deprecated

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

Deprecated: Use URLRequest.ProtoReflect.Descriptor instead.

func (*URLRequest) GetQuery

func (x *URLRequest) GetQuery() string

func (*URLRequest) ProtoMessage

func (*URLRequest) ProtoMessage()

func (*URLRequest) ProtoReflect

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

func (*URLRequest) Reset

func (x *URLRequest) Reset()

func (*URLRequest) String

func (x *URLRequest) String() string

type UnimplementedCheckServer

type UnimplementedCheckServer struct {
}

UnimplementedCheckServer must be embedded to have forward compatible implementations.

func (UnimplementedCheckServer) Ping

func (UnimplementedCheckServer) SearchDomain

func (UnimplementedCheckServer) SearchID

func (UnimplementedCheckServer) SearchIP4

func (UnimplementedCheckServer) SearchURL

func (UnimplementedCheckServer) Stat

type UnsafeCheckServer

type UnsafeCheckServer interface {
	// contains filtered or unexported methods
}

UnsafeCheckServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CheckServer will result in compilation errors.

Jump to

Keyboard shortcuts

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