v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_store_v1_store_proto protoreflect.FileDescriptor

Functions

func RegisterStoreServer

func RegisterStoreServer(s *grpc.Server, srv StoreServer)

Types

type DecreaseReq

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

func (*DecreaseReq) Descriptor deprecated

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

Deprecated: Use DecreaseReq.ProtoReflect.Descriptor instead.

func (*DecreaseReq) GetKey

func (x *DecreaseReq) GetKey() string

func (*DecreaseReq) ProtoMessage

func (*DecreaseReq) ProtoMessage()

func (*DecreaseReq) ProtoReflect

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

func (*DecreaseReq) Reset

func (x *DecreaseReq) Reset()

func (*DecreaseReq) String

func (x *DecreaseReq) String() string

type DecreaseResp

type DecreaseResp struct {
	// contains filtered or unexported fields
}

func (*DecreaseResp) Descriptor deprecated

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

Deprecated: Use DecreaseResp.ProtoReflect.Descriptor instead.

func (*DecreaseResp) ProtoMessage

func (*DecreaseResp) ProtoMessage()

func (*DecreaseResp) ProtoReflect

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

func (*DecreaseResp) Reset

func (x *DecreaseResp) Reset()

func (*DecreaseResp) String

func (x *DecreaseResp) String() string

type DelReq

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

func (*DelReq) Descriptor deprecated

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

Deprecated: Use DelReq.ProtoReflect.Descriptor instead.

func (*DelReq) GetKey

func (x *DelReq) GetKey() string

func (*DelReq) ProtoMessage

func (*DelReq) ProtoMessage()

func (*DelReq) ProtoReflect

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

func (*DelReq) Reset

func (x *DelReq) Reset()

func (*DelReq) String

func (x *DelReq) String() string

type DelResp

type DelResp struct {
	// contains filtered or unexported fields
}

func (*DelResp) Descriptor deprecated

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

Deprecated: Use DelResp.ProtoReflect.Descriptor instead.

func (*DelResp) ProtoMessage

func (*DelResp) ProtoMessage()

func (*DelResp) ProtoReflect

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

func (*DelResp) Reset

func (x *DelResp) Reset()

func (*DelResp) String

func (x *DelResp) String() string

type ExpireReq

type ExpireReq struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Expire int32  `protobuf:"varint,2,opt,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

func (*ExpireReq) Descriptor deprecated

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

Deprecated: Use ExpireReq.ProtoReflect.Descriptor instead.

func (*ExpireReq) GetExpire

func (x *ExpireReq) GetExpire() int32

func (*ExpireReq) GetKey

func (x *ExpireReq) GetKey() string

func (*ExpireReq) ProtoMessage

func (*ExpireReq) ProtoMessage()

func (*ExpireReq) ProtoReflect

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

func (*ExpireReq) Reset

func (x *ExpireReq) Reset()

func (*ExpireReq) String

func (x *ExpireReq) String() string

type ExpireResp

type ExpireResp struct {
	// contains filtered or unexported fields
}

func (*ExpireResp) Descriptor deprecated

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

Deprecated: Use ExpireResp.ProtoReflect.Descriptor instead.

func (*ExpireResp) ProtoMessage

func (*ExpireResp) ProtoMessage()

func (*ExpireResp) ProtoReflect

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

func (*ExpireResp) Reset

func (x *ExpireResp) Reset()

func (*ExpireResp) String

func (x *ExpireResp) String() string

type GetReq

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

func (*GetReq) Descriptor deprecated

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

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetKey

func (x *GetReq) GetKey() string

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

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

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

type GetResp

type GetResp struct {
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResp) Descriptor deprecated

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

Deprecated: Use GetResp.ProtoReflect.Descriptor instead.

func (*GetResp) GetValue

func (x *GetResp) GetValue() string

func (*GetResp) ProtoMessage

func (*GetResp) ProtoMessage()

func (*GetResp) ProtoReflect

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

func (*GetResp) Reset

func (x *GetResp) Reset()

func (*GetResp) String

func (x *GetResp) String() string

type HashDelReq

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

func (*HashDelReq) Descriptor deprecated

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

Deprecated: Use HashDelReq.ProtoReflect.Descriptor instead.

func (*HashDelReq) GetHashKey

func (x *HashDelReq) GetHashKey() string

func (*HashDelReq) GetKey

func (x *HashDelReq) GetKey() string

func (*HashDelReq) ProtoMessage

func (*HashDelReq) ProtoMessage()

func (*HashDelReq) ProtoReflect

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

func (*HashDelReq) Reset

func (x *HashDelReq) Reset()

func (*HashDelReq) String

func (x *HashDelReq) String() string

type HashDelResp

type HashDelResp struct {
	// contains filtered or unexported fields
}

func (*HashDelResp) Descriptor deprecated

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

Deprecated: Use HashDelResp.ProtoReflect.Descriptor instead.

func (*HashDelResp) ProtoMessage

func (*HashDelResp) ProtoMessage()

func (*HashDelResp) ProtoReflect

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

func (*HashDelResp) Reset

func (x *HashDelResp) Reset()

func (*HashDelResp) String

func (x *HashDelResp) String() string

type HashGetReq

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

func (*HashGetReq) Descriptor deprecated

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

Deprecated: Use HashGetReq.ProtoReflect.Descriptor instead.

func (*HashGetReq) GetHashKey

func (x *HashGetReq) GetHashKey() string

func (*HashGetReq) GetKey

func (x *HashGetReq) GetKey() string

func (*HashGetReq) ProtoMessage

func (*HashGetReq) ProtoMessage()

func (*HashGetReq) ProtoReflect

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

func (*HashGetReq) Reset

func (x *HashGetReq) Reset()

func (*HashGetReq) String

func (x *HashGetReq) String() string

type HashGetResp

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

func (*HashGetResp) Descriptor deprecated

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

Deprecated: Use HashGetResp.ProtoReflect.Descriptor instead.

func (*HashGetResp) GetValue

func (x *HashGetResp) GetValue() string

func (*HashGetResp) ProtoMessage

func (*HashGetResp) ProtoMessage()

func (*HashGetResp) ProtoReflect

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

func (*HashGetResp) Reset

func (x *HashGetResp) Reset()

func (*HashGetResp) String

func (x *HashGetResp) String() string

type IncreaseReq

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

func (*IncreaseReq) Descriptor deprecated

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

Deprecated: Use IncreaseReq.ProtoReflect.Descriptor instead.

func (*IncreaseReq) GetKey

func (x *IncreaseReq) GetKey() string

func (*IncreaseReq) ProtoMessage

func (*IncreaseReq) ProtoMessage()

func (*IncreaseReq) ProtoReflect

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

func (*IncreaseReq) Reset

func (x *IncreaseReq) Reset()

func (*IncreaseReq) String

func (x *IncreaseReq) String() string

type IncreaseResp

type IncreaseResp struct {
	// contains filtered or unexported fields
}

func (*IncreaseResp) Descriptor deprecated

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

Deprecated: Use IncreaseResp.ProtoReflect.Descriptor instead.

func (*IncreaseResp) ProtoMessage

func (*IncreaseResp) ProtoMessage()

func (*IncreaseResp) ProtoReflect

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

func (*IncreaseResp) Reset

func (x *IncreaseResp) Reset()

func (*IncreaseResp) String

func (x *IncreaseResp) String() string

type SetReq

type SetReq struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Expire int32  `protobuf:"varint,3,opt,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

func (*SetReq) Descriptor deprecated

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

Deprecated: Use SetReq.ProtoReflect.Descriptor instead.

func (*SetReq) GetExpire

func (x *SetReq) GetExpire() int32

func (*SetReq) GetKey

func (x *SetReq) GetKey() string

func (*SetReq) GetValue

func (x *SetReq) GetValue() string

func (*SetReq) ProtoMessage

func (*SetReq) ProtoMessage()

func (*SetReq) ProtoReflect

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

func (*SetReq) Reset

func (x *SetReq) Reset()

func (*SetReq) String

func (x *SetReq) String() string

type SetResp

type SetResp struct {
	// contains filtered or unexported fields
}

func (*SetResp) Descriptor deprecated

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

Deprecated: Use SetResp.ProtoReflect.Descriptor instead.

func (*SetResp) ProtoMessage

func (*SetResp) ProtoMessage()

func (*SetResp) ProtoReflect

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

func (*SetResp) Reset

func (x *SetResp) Reset()

func (*SetResp) String

func (x *SetResp) String() string

type StoreClient

type StoreClient interface {
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetResp, error)
	Set(ctx context.Context, in *SetReq, opts ...grpc.CallOption) (*SetResp, error)
	Del(ctx context.Context, in *DelReq, opts ...grpc.CallOption) (*DelResp, error)
	HashGet(ctx context.Context, in *HashGetReq, opts ...grpc.CallOption) (*HashGetResp, error)
	HashDel(ctx context.Context, in *HashDelReq, opts ...grpc.CallOption) (*HashDelResp, error)
	Increase(ctx context.Context, in *IncreaseReq, opts ...grpc.CallOption) (*IncreaseResp, error)
	Decrease(ctx context.Context, in *DecreaseReq, opts ...grpc.CallOption) (*DecreaseResp, error)
	Expire(ctx context.Context, in *ExpireReq, opts ...grpc.CallOption) (*ExpireResp, error)
}

StoreClient is the client API for Store service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStoreClient

func NewStoreClient(cc grpc.ClientConnInterface) StoreClient

type StoreServer

StoreServer is the server API for Store service.

type UnimplementedStoreServer

type UnimplementedStoreServer struct {
}

UnimplementedStoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedStoreServer) Decrease

func (*UnimplementedStoreServer) Del

func (*UnimplementedStoreServer) Expire

func (*UnimplementedStoreServer) Get

func (*UnimplementedStoreServer) HashDel

func (*UnimplementedStoreServer) HashGet

func (*UnimplementedStoreServer) Increase

func (*UnimplementedStoreServer) Set

Jump to

Keyboard shortcuts

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