huton_proto

package
v0.0.0-...-987ed72 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCacheServer

func RegisterCacheServer(s *grpc.Server, srv CacheServer)

Types

type CacheClient

type CacheClient interface {
	Set(ctx context.Context, in *CacheSet, opts ...grpc.CallOption) (*CacheSetResp, error)
	Del(ctx context.Context, in *CacheDel, opts ...grpc.CallOption) (*CacheDelResp, error)
}

func NewCacheClient

func NewCacheClient(cc *grpc.ClientConn) CacheClient

type CacheDel

type CacheDel struct {
	CacheName            string   `protobuf:"bytes,1,opt,name=cache_name,json=cacheName" json:"cache_name,omitempty"`
	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CacheDel) Descriptor

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

func (*CacheDel) GetCacheName

func (m *CacheDel) GetCacheName() string

func (*CacheDel) GetKey

func (m *CacheDel) GetKey() []byte

func (*CacheDel) GetValue

func (m *CacheDel) GetValue() []byte

func (*CacheDel) ProtoMessage

func (*CacheDel) ProtoMessage()

func (*CacheDel) Reset

func (m *CacheDel) Reset()

func (*CacheDel) String

func (m *CacheDel) String() string

func (*CacheDel) XXX_DiscardUnknown

func (m *CacheDel) XXX_DiscardUnknown()

func (*CacheDel) XXX_Marshal

func (m *CacheDel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheDel) XXX_Merge

func (dst *CacheDel) XXX_Merge(src proto.Message)

func (*CacheDel) XXX_Size

func (m *CacheDel) XXX_Size() int

func (*CacheDel) XXX_Unmarshal

func (m *CacheDel) XXX_Unmarshal(b []byte) error

type CacheDelResp

type CacheDelResp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CacheDelResp) Descriptor

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

func (*CacheDelResp) ProtoMessage

func (*CacheDelResp) ProtoMessage()

func (*CacheDelResp) Reset

func (m *CacheDelResp) Reset()

func (*CacheDelResp) String

func (m *CacheDelResp) String() string

func (*CacheDelResp) XXX_DiscardUnknown

func (m *CacheDelResp) XXX_DiscardUnknown()

func (*CacheDelResp) XXX_Marshal

func (m *CacheDelResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheDelResp) XXX_Merge

func (dst *CacheDelResp) XXX_Merge(src proto.Message)

func (*CacheDelResp) XXX_Size

func (m *CacheDelResp) XXX_Size() int

func (*CacheDelResp) XXX_Unmarshal

func (m *CacheDelResp) XXX_Unmarshal(b []byte) error

type CacheServer

type CacheServer interface {
	Set(context.Context, *CacheSet) (*CacheSetResp, error)
	Del(context.Context, *CacheDel) (*CacheDelResp, error)
}

type CacheSet

type CacheSet struct {
	CacheName            string   `protobuf:"bytes,1,opt,name=cache_name,json=cacheName" json:"cache_name,omitempty"`
	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CacheSet) Descriptor

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

func (*CacheSet) GetCacheName

func (m *CacheSet) GetCacheName() string

func (*CacheSet) GetKey

func (m *CacheSet) GetKey() []byte

func (*CacheSet) GetValue

func (m *CacheSet) GetValue() []byte

func (*CacheSet) ProtoMessage

func (*CacheSet) ProtoMessage()

func (*CacheSet) Reset

func (m *CacheSet) Reset()

func (*CacheSet) String

func (m *CacheSet) String() string

func (*CacheSet) XXX_DiscardUnknown

func (m *CacheSet) XXX_DiscardUnknown()

func (*CacheSet) XXX_Marshal

func (m *CacheSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheSet) XXX_Merge

func (dst *CacheSet) XXX_Merge(src proto.Message)

func (*CacheSet) XXX_Size

func (m *CacheSet) XXX_Size() int

func (*CacheSet) XXX_Unmarshal

func (m *CacheSet) XXX_Unmarshal(b []byte) error

type CacheSetResp

type CacheSetResp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CacheSetResp) Descriptor

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

func (*CacheSetResp) ProtoMessage

func (*CacheSetResp) ProtoMessage()

func (*CacheSetResp) Reset

func (m *CacheSetResp) Reset()

func (*CacheSetResp) String

func (m *CacheSetResp) String() string

func (*CacheSetResp) XXX_DiscardUnknown

func (m *CacheSetResp) XXX_DiscardUnknown()

func (*CacheSetResp) XXX_Marshal

func (m *CacheSetResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheSetResp) XXX_Merge

func (dst *CacheSetResp) XXX_Merge(src proto.Message)

func (*CacheSetResp) XXX_Size

func (m *CacheSetResp) XXX_Size() int

func (*CacheSetResp) XXX_Unmarshal

func (m *CacheSetResp) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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