Documentation ¶
Index ¶
- Variables
- type GetRequest
- func (p *GetRequest) Equals(other *GetRequest) bool
- func (p *GetRequest) GetGroup() string
- func (p *GetRequest) GetKey() string
- func (p *GetRequest) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *GetRequest) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *GetRequest) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *GetRequest) String() string
- func (p *GetRequest) Write(ctx context.Context, oprot thrift.TProtocol) error
- type GetResponse
- func (p *GetResponse) Equals(other *GetResponse) bool
- func (p *GetResponse) GetValue() []byte
- func (p *GetResponse) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *GetResponse) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *GetResponse) String() string
- func (p *GetResponse) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Memo
- type MemoClient
- type MemoGetArgs
- func (p *MemoGetArgs) GetReq() *GetRequest
- func (p *MemoGetArgs) IsSetReq() bool
- func (p *MemoGetArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *MemoGetArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *MemoGetArgs) String() string
- func (p *MemoGetArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type MemoGetResult
- func (p *MemoGetResult) GetSuccess() *GetResponse
- func (p *MemoGetResult) IsSetSuccess() bool
- func (p *MemoGetResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *MemoGetResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *MemoGetResult) String() string
- func (p *MemoGetResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type MemoProcessor
- func (p *MemoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MemoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MemoProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MemoProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type GetRequest ¶
type GetRequest struct { Group string `thrift:"group,1" db:"group" json:"group"` Key string `thrift:"key,2" db:"key" json:"key"` }
Attributes:
- Group
- Key
var MemoGetArgs_Req_DEFAULT *GetRequest
func NewGetRequest ¶
func NewGetRequest() *GetRequest
func (*GetRequest) Equals ¶
func (p *GetRequest) Equals(other *GetRequest) bool
func (*GetRequest) GetGroup ¶
func (p *GetRequest) GetGroup() string
func (*GetRequest) GetKey ¶
func (p *GetRequest) GetKey() string
func (*GetRequest) ReadField1 ¶
func (*GetRequest) ReadField2 ¶
func (*GetRequest) String ¶
func (p *GetRequest) String() string
type GetResponse ¶
type GetResponse struct {
Value []byte `thrift:"value,1" db:"value" json:"value"`
}
Attributes:
- Value
var MemoGetResult_Success_DEFAULT *GetResponse
func NewGetResponse ¶
func NewGetResponse() *GetResponse
func (*GetResponse) Equals ¶
func (p *GetResponse) Equals(other *GetResponse) bool
func (*GetResponse) GetValue ¶
func (p *GetResponse) GetValue() []byte
func (*GetResponse) ReadField1 ¶
func (*GetResponse) String ¶
func (p *GetResponse) String() string
type Memo ¶
type Memo interface { // Parameters: // - Req Get(ctx context.Context, req *GetRequest) (_r *GetResponse, _err error) }
type MemoClient ¶
type MemoClient struct {
// contains filtered or unexported fields
}
func NewMemoClient ¶
func NewMemoClient(c thrift.TClient) *MemoClient
func NewMemoClientFactory ¶
func NewMemoClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MemoClient
func NewMemoClientProtocol ¶
func NewMemoClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MemoClient
func (*MemoClient) Client_ ¶
func (p *MemoClient) Client_() thrift.TClient
func (*MemoClient) Get ¶
func (p *MemoClient) Get(ctx context.Context, req *GetRequest) (_r *GetResponse, _err error)
Parameters:
- Req
func (*MemoClient) LastResponseMeta_ ¶
func (p *MemoClient) LastResponseMeta_() thrift.ResponseMeta
func (*MemoClient) SetLastResponseMeta_ ¶
func (p *MemoClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type MemoGetArgs ¶
type MemoGetArgs struct {
Req *GetRequest `thrift:"req,1" db:"req" json:"req"`
}
Attributes:
- Req
func NewMemoGetArgs ¶
func NewMemoGetArgs() *MemoGetArgs
func (*MemoGetArgs) GetReq ¶
func (p *MemoGetArgs) GetReq() *GetRequest
func (*MemoGetArgs) IsSetReq ¶
func (p *MemoGetArgs) IsSetReq() bool
func (*MemoGetArgs) ReadField1 ¶
func (*MemoGetArgs) String ¶
func (p *MemoGetArgs) String() string
type MemoGetResult ¶
type MemoGetResult struct {
Success *GetResponse `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewMemoGetResult ¶
func NewMemoGetResult() *MemoGetResult
func (*MemoGetResult) GetSuccess ¶
func (p *MemoGetResult) GetSuccess() *GetResponse
func (*MemoGetResult) IsSetSuccess ¶
func (p *MemoGetResult) IsSetSuccess() bool
func (*MemoGetResult) ReadField0 ¶
func (*MemoGetResult) String ¶
func (p *MemoGetResult) String() string
type MemoProcessor ¶
type MemoProcessor struct {
// contains filtered or unexported fields
}
func NewMemoProcessor ¶
func NewMemoProcessor(handler Memo) *MemoProcessor
func (*MemoProcessor) AddToProcessorMap ¶
func (p *MemoProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MemoProcessor) GetProcessorFunction ¶
func (p *MemoProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MemoProcessor) Process ¶
func (p *MemoProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MemoProcessor) ProcessorMap ¶
func (p *MemoProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.