gset

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GSetService_SAdd_FullMethodName        = "/gset.GSetService/SAdd"
	GSetService_SAdds_FullMethodName       = "/gset.GSetService/SAdds"
	GSetService_SRem_FullMethodName        = "/gset.GSetService/SRem"
	GSetService_SRems_FullMethodName       = "/gset.GSetService/SRems"
	GSetService_SCard_FullMethodName       = "/gset.GSetService/SCard"
	GSetService_SMembers_FullMethodName    = "/gset.GSetService/SMembers"
	GSetService_SIsMember_FullMethodName   = "/gset.GSetService/SIsMember"
	GSetService_SUnion_FullMethodName      = "/gset.GSetService/SUnion"
	GSetService_SInter_FullMethodName      = "/gset.GSetService/SInter"
	GSetService_SDiff_FullMethodName       = "/gset.GSetService/SDiff"
	GSetService_SUnionStore_FullMethodName = "/gset.GSetService/SUnionStore"
	GSetService_SInterStore_FullMethodName = "/gset.GSetService/SInterStore"
)

Variables

View Source
var File_lib_proto_gset_db_proto protoreflect.FileDescriptor
View Source
var GSetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gset.GSetService",
	HandlerType: (*GSetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SAdd",
			Handler:    _GSetService_SAdd_Handler,
		},
		{
			MethodName: "SAdds",
			Handler:    _GSetService_SAdds_Handler,
		},
		{
			MethodName: "SRem",
			Handler:    _GSetService_SRem_Handler,
		},
		{
			MethodName: "SRems",
			Handler:    _GSetService_SRems_Handler,
		},
		{
			MethodName: "SCard",
			Handler:    _GSetService_SCard_Handler,
		},
		{
			MethodName: "SMembers",
			Handler:    _GSetService_SMembers_Handler,
		},
		{
			MethodName: "SIsMember",
			Handler:    _GSetService_SIsMember_Handler,
		},
		{
			MethodName: "SUnion",
			Handler:    _GSetService_SUnion_Handler,
		},
		{
			MethodName: "SInter",
			Handler:    _GSetService_SInter_Handler,
		},
		{
			MethodName: "SDiff",
			Handler:    _GSetService_SDiff_Handler,
		},
		{
			MethodName: "SUnionStore",
			Handler:    _GSetService_SUnionStore_Handler,
		},
		{
			MethodName: "SInterStore",
			Handler:    _GSetService_SInterStore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lib/proto/gset/db.proto",
}

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

Functions

func RegisterGSetServiceServer

func RegisterGSetServiceServer(s grpc.ServiceRegistrar, srv GSetServiceServer)

Types

type EmptyResponse

type EmptyResponse struct {
	OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"`
	// contains filtered or unexported fields
}

func (*EmptyResponse) Descriptor deprecated

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

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) GetOK added in v1.0.13

func (x *EmptyResponse) GetOK() bool

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

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

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type GSetServiceClient

type GSetServiceClient interface {
	SAdd(ctx context.Context, in *SAddRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	SAdds(ctx context.Context, in *SAddsRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	SRem(ctx context.Context, in *SRemRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	SRems(ctx context.Context, in *SRemsRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	SCard(ctx context.Context, in *SCardRequest, opts ...grpc.CallOption) (*SCardResponse, error)
	SMembers(ctx context.Context, in *SMembersRequest, opts ...grpc.CallOption) (*SMembersResponse, error)
	SIsMember(ctx context.Context, in *SIsMemberRequest, opts ...grpc.CallOption) (*SIsMemberResponse, error)
	SUnion(ctx context.Context, in *SUnionRequest, opts ...grpc.CallOption) (*SUnionResponse, error)
	SInter(ctx context.Context, in *SInterRequest, opts ...grpc.CallOption) (*SInterResponse, error)
	SDiff(ctx context.Context, in *SDiffRequest, opts ...grpc.CallOption) (*SDiffResponse, error)
	SUnionStore(ctx context.Context, in *SUnionStoreRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	SInterStore(ctx context.Context, in *SInterStoreRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

GSetServiceClient is the client API for GSetService 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.

type GSetServiceServer

GSetServiceServer is the server API for GSetService service. All implementations must embed UnimplementedGSetServiceServer for forward compatibility

type SAddRequest

type SAddRequest struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Member string `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*SAddRequest) Descriptor deprecated

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

Deprecated: Use SAddRequest.ProtoReflect.Descriptor instead.

func (*SAddRequest) GetKey

func (x *SAddRequest) GetKey() string

func (*SAddRequest) GetMember

func (x *SAddRequest) GetMember() string

func (*SAddRequest) ProtoMessage

func (*SAddRequest) ProtoMessage()

func (*SAddRequest) ProtoReflect

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

func (*SAddRequest) Reset

func (x *SAddRequest) Reset()

func (*SAddRequest) String

func (x *SAddRequest) String() string

type SAddsRequest

type SAddsRequest struct {
	Key     string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SAddsRequest) Descriptor deprecated

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

Deprecated: Use SAddsRequest.ProtoReflect.Descriptor instead.

func (*SAddsRequest) GetKey

func (x *SAddsRequest) GetKey() string

func (*SAddsRequest) GetMembers

func (x *SAddsRequest) GetMembers() []string

func (*SAddsRequest) ProtoMessage

func (*SAddsRequest) ProtoMessage()

func (*SAddsRequest) ProtoReflect

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

func (*SAddsRequest) Reset

func (x *SAddsRequest) Reset()

func (*SAddsRequest) String

func (x *SAddsRequest) String() string

type SCardRequest

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

func (*SCardRequest) Descriptor deprecated

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

Deprecated: Use SCardRequest.ProtoReflect.Descriptor instead.

func (*SCardRequest) GetKey

func (x *SCardRequest) GetKey() string

func (*SCardRequest) ProtoMessage

func (*SCardRequest) ProtoMessage()

func (*SCardRequest) ProtoReflect

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

func (*SCardRequest) Reset

func (x *SCardRequest) Reset()

func (*SCardRequest) String

func (x *SCardRequest) String() string

type SCardResponse

type SCardResponse struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*SCardResponse) Descriptor deprecated

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

Deprecated: Use SCardResponse.ProtoReflect.Descriptor instead.

func (*SCardResponse) GetCount

func (x *SCardResponse) GetCount() int32

func (*SCardResponse) ProtoMessage

func (*SCardResponse) ProtoMessage()

func (*SCardResponse) ProtoReflect

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

func (*SCardResponse) Reset

func (x *SCardResponse) Reset()

func (*SCardResponse) String

func (x *SCardResponse) String() string

type SDiffRequest

type SDiffRequest struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*SDiffRequest) Descriptor deprecated

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

Deprecated: Use SDiffRequest.ProtoReflect.Descriptor instead.

func (*SDiffRequest) GetKeys

func (x *SDiffRequest) GetKeys() []string

func (*SDiffRequest) ProtoMessage

func (*SDiffRequest) ProtoMessage()

func (*SDiffRequest) ProtoReflect

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

func (*SDiffRequest) Reset

func (x *SDiffRequest) Reset()

func (*SDiffRequest) String

func (x *SDiffRequest) String() string

type SDiffResponse

type SDiffResponse struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SDiffResponse) Descriptor deprecated

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

Deprecated: Use SDiffResponse.ProtoReflect.Descriptor instead.

func (*SDiffResponse) GetMembers

func (x *SDiffResponse) GetMembers() []string

func (*SDiffResponse) ProtoMessage

func (*SDiffResponse) ProtoMessage()

func (*SDiffResponse) ProtoReflect

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

func (*SDiffResponse) Reset

func (x *SDiffResponse) Reset()

func (*SDiffResponse) String

func (x *SDiffResponse) String() string

type SInterRequest

type SInterRequest struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*SInterRequest) Descriptor deprecated

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

Deprecated: Use SInterRequest.ProtoReflect.Descriptor instead.

func (*SInterRequest) GetKeys

func (x *SInterRequest) GetKeys() []string

func (*SInterRequest) ProtoMessage

func (*SInterRequest) ProtoMessage()

func (*SInterRequest) ProtoReflect

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

func (*SInterRequest) Reset

func (x *SInterRequest) Reset()

func (*SInterRequest) String

func (x *SInterRequest) String() string

type SInterResponse

type SInterResponse struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SInterResponse) Descriptor deprecated

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

Deprecated: Use SInterResponse.ProtoReflect.Descriptor instead.

func (*SInterResponse) GetMembers

func (x *SInterResponse) GetMembers() []string

func (*SInterResponse) ProtoMessage

func (*SInterResponse) ProtoMessage()

func (*SInterResponse) ProtoReflect

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

func (*SInterResponse) Reset

func (x *SInterResponse) Reset()

func (*SInterResponse) String

func (x *SInterResponse) String() string

type SInterStoreRequest

type SInterStoreRequest struct {
	Destination string   `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	Keys        []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*SInterStoreRequest) Descriptor deprecated

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

Deprecated: Use SInterStoreRequest.ProtoReflect.Descriptor instead.

func (*SInterStoreRequest) GetDestination

func (x *SInterStoreRequest) GetDestination() string

func (*SInterStoreRequest) GetKeys

func (x *SInterStoreRequest) GetKeys() []string

func (*SInterStoreRequest) ProtoMessage

func (*SInterStoreRequest) ProtoMessage()

func (*SInterStoreRequest) ProtoReflect

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

func (*SInterStoreRequest) Reset

func (x *SInterStoreRequest) Reset()

func (*SInterStoreRequest) String

func (x *SInterStoreRequest) String() string

type SIsMemberRequest

type SIsMemberRequest struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Member string `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*SIsMemberRequest) Descriptor deprecated

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

Deprecated: Use SIsMemberRequest.ProtoReflect.Descriptor instead.

func (*SIsMemberRequest) GetKey

func (x *SIsMemberRequest) GetKey() string

func (*SIsMemberRequest) GetMember

func (x *SIsMemberRequest) GetMember() string

func (*SIsMemberRequest) ProtoMessage

func (*SIsMemberRequest) ProtoMessage()

func (*SIsMemberRequest) ProtoReflect

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

func (*SIsMemberRequest) Reset

func (x *SIsMemberRequest) Reset()

func (*SIsMemberRequest) String

func (x *SIsMemberRequest) String() string

type SIsMemberResponse

type SIsMemberResponse struct {
	IsMember bool `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"`
	// contains filtered or unexported fields
}

func (*SIsMemberResponse) Descriptor deprecated

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

Deprecated: Use SIsMemberResponse.ProtoReflect.Descriptor instead.

func (*SIsMemberResponse) GetIsMember

func (x *SIsMemberResponse) GetIsMember() bool

func (*SIsMemberResponse) ProtoMessage

func (*SIsMemberResponse) ProtoMessage()

func (*SIsMemberResponse) ProtoReflect

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

func (*SIsMemberResponse) Reset

func (x *SIsMemberResponse) Reset()

func (*SIsMemberResponse) String

func (x *SIsMemberResponse) String() string

type SMembersRequest

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

func (*SMembersRequest) Descriptor deprecated

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

Deprecated: Use SMembersRequest.ProtoReflect.Descriptor instead.

func (*SMembersRequest) GetKey

func (x *SMembersRequest) GetKey() string

func (*SMembersRequest) ProtoMessage

func (*SMembersRequest) ProtoMessage()

func (*SMembersRequest) ProtoReflect

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

func (*SMembersRequest) Reset

func (x *SMembersRequest) Reset()

func (*SMembersRequest) String

func (x *SMembersRequest) String() string

type SMembersResponse

type SMembersResponse struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SMembersResponse) Descriptor deprecated

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

Deprecated: Use SMembersResponse.ProtoReflect.Descriptor instead.

func (*SMembersResponse) GetMembers

func (x *SMembersResponse) GetMembers() []string

func (*SMembersResponse) ProtoMessage

func (*SMembersResponse) ProtoMessage()

func (*SMembersResponse) ProtoReflect

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

func (*SMembersResponse) Reset

func (x *SMembersResponse) Reset()

func (*SMembersResponse) String

func (x *SMembersResponse) String() string

type SRemRequest

type SRemRequest struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Member string `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
	// contains filtered or unexported fields
}

func (*SRemRequest) Descriptor deprecated

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

Deprecated: Use SRemRequest.ProtoReflect.Descriptor instead.

func (*SRemRequest) GetKey

func (x *SRemRequest) GetKey() string

func (*SRemRequest) GetMember

func (x *SRemRequest) GetMember() string

func (*SRemRequest) ProtoMessage

func (*SRemRequest) ProtoMessage()

func (*SRemRequest) ProtoReflect

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

func (*SRemRequest) Reset

func (x *SRemRequest) Reset()

func (*SRemRequest) String

func (x *SRemRequest) String() string

type SRemsRequest

type SRemsRequest struct {
	Key     string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SRemsRequest) Descriptor deprecated

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

Deprecated: Use SRemsRequest.ProtoReflect.Descriptor instead.

func (*SRemsRequest) GetKey

func (x *SRemsRequest) GetKey() string

func (*SRemsRequest) GetMembers

func (x *SRemsRequest) GetMembers() []string

func (*SRemsRequest) ProtoMessage

func (*SRemsRequest) ProtoMessage()

func (*SRemsRequest) ProtoReflect

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

func (*SRemsRequest) Reset

func (x *SRemsRequest) Reset()

func (*SRemsRequest) String

func (x *SRemsRequest) String() string

type SUnionRequest

type SUnionRequest struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*SUnionRequest) Descriptor deprecated

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

Deprecated: Use SUnionRequest.ProtoReflect.Descriptor instead.

func (*SUnionRequest) GetKeys

func (x *SUnionRequest) GetKeys() []string

func (*SUnionRequest) ProtoMessage

func (*SUnionRequest) ProtoMessage()

func (*SUnionRequest) ProtoReflect

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

func (*SUnionRequest) Reset

func (x *SUnionRequest) Reset()

func (*SUnionRequest) String

func (x *SUnionRequest) String() string

type SUnionResponse

type SUnionResponse struct {
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*SUnionResponse) Descriptor deprecated

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

Deprecated: Use SUnionResponse.ProtoReflect.Descriptor instead.

func (*SUnionResponse) GetMembers

func (x *SUnionResponse) GetMembers() []string

func (*SUnionResponse) ProtoMessage

func (*SUnionResponse) ProtoMessage()

func (*SUnionResponse) ProtoReflect

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

func (*SUnionResponse) Reset

func (x *SUnionResponse) Reset()

func (*SUnionResponse) String

func (x *SUnionResponse) String() string

type SUnionStoreRequest

type SUnionStoreRequest struct {
	Destination string   `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	Keys        []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*SUnionStoreRequest) Descriptor deprecated

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

Deprecated: Use SUnionStoreRequest.ProtoReflect.Descriptor instead.

func (*SUnionStoreRequest) GetDestination

func (x *SUnionStoreRequest) GetDestination() string

func (*SUnionStoreRequest) GetKeys

func (x *SUnionStoreRequest) GetKeys() []string

func (*SUnionStoreRequest) ProtoMessage

func (*SUnionStoreRequest) ProtoMessage()

func (*SUnionStoreRequest) ProtoReflect

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

func (*SUnionStoreRequest) Reset

func (x *SUnionStoreRequest) Reset()

func (*SUnionStoreRequest) String

func (x *SUnionStoreRequest) String() string

type UnimplementedGSetServiceServer

type UnimplementedGSetServiceServer struct {
}

UnimplementedGSetServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGSetServiceServer) SAdd

func (UnimplementedGSetServiceServer) SAdds

func (UnimplementedGSetServiceServer) SCard

func (UnimplementedGSetServiceServer) SDiff

func (UnimplementedGSetServiceServer) SInter

func (UnimplementedGSetServiceServer) SInterStore

func (UnimplementedGSetServiceServer) SIsMember

func (UnimplementedGSetServiceServer) SMembers

func (UnimplementedGSetServiceServer) SRem

func (UnimplementedGSetServiceServer) SRems

func (UnimplementedGSetServiceServer) SUnion

func (UnimplementedGSetServiceServer) SUnionStore

type UnsafeGSetServiceServer

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

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

Jump to

Keyboard shortcuts

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