Documentation ¶
Overview ¶
Package keyvalue is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanAdminInheritedClient(thriftService string, client thrift.TChanClient) *tchanAdminClient
- func NewTChanAdminServer(handler TChanAdmin) thrift.TChanServer
- func NewTChanBaseServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaseServiceClient
- func NewTChanBaseServiceServer(handler TChanBaseService) thrift.TChanServer
- func NewTChanKeyValueInheritedClient(thriftService string, client thrift.TChanClient) *tchanKeyValueClient
- func NewTChanKeyValueServer(handler TChanKeyValue) thrift.TChanServer
- type Admin
- type AdminClearAllArgs
- type AdminClearAllResult
- type AdminClient
- type AdminProcessor
- type BaseService
- type BaseServiceClient
- type BaseServiceHealthCheckArgs
- type BaseServiceHealthCheckResult
- func (p *BaseServiceHealthCheckResult) GetSuccess() string
- func (p *BaseServiceHealthCheckResult) IsSetSuccess() bool
- func (p *BaseServiceHealthCheckResult) Read(iprot thrift.TProtocol) error
- func (p *BaseServiceHealthCheckResult) String() string
- func (p *BaseServiceHealthCheckResult) Write(oprot thrift.TProtocol) error
- type BaseServiceProcessor
- func (p *BaseServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *BaseServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *BaseServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *BaseServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type InvalidKey
- type KeyNotFound
- type KeyValue
- type KeyValueClient
- type KeyValueGetArgs
- type KeyValueGetResult
- func (p *KeyValueGetResult) GetInvalidKey() *InvalidKey
- func (p *KeyValueGetResult) GetNotFound() *KeyNotFound
- func (p *KeyValueGetResult) GetSuccess() string
- func (p *KeyValueGetResult) IsSetInvalidKey() bool
- func (p *KeyValueGetResult) IsSetNotFound() bool
- func (p *KeyValueGetResult) IsSetSuccess() bool
- func (p *KeyValueGetResult) Read(iprot thrift.TProtocol) error
- func (p *KeyValueGetResult) String() string
- func (p *KeyValueGetResult) Write(oprot thrift.TProtocol) error
- type KeyValueProcessor
- type KeyValueSetArgs
- type KeyValueSetResult
- type NotAuthorized
- type TChanAdmin
- type TChanBaseService
- type TChanKeyValue
Constants ¶
This section is empty.
Variables ¶
var BaseServiceHealthCheckResult_Success_DEFAULT string
var GoUnusedProtection__ int
var KeyValueGetResult_Success_DEFAULT string
Functions ¶
func NewTChanAdminInheritedClient ¶
func NewTChanAdminInheritedClient(thriftService string, client thrift.TChanClient) *tchanAdminClient
func NewTChanAdminServer ¶
func NewTChanAdminServer(handler TChanAdmin) thrift.TChanServer
NewTChanAdminServer wraps a handler for TChanAdmin so it can be registered with a thrift.Server.
func NewTChanBaseServiceInheritedClient ¶
func NewTChanBaseServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaseServiceClient
func NewTChanBaseServiceServer ¶
func NewTChanBaseServiceServer(handler TChanBaseService) thrift.TChanServer
NewTChanBaseServiceServer wraps a handler for TChanBaseService so it can be registered with a thrift.Server.
func NewTChanKeyValueInheritedClient ¶
func NewTChanKeyValueInheritedClient(thriftService string, client thrift.TChanClient) *tchanKeyValueClient
func NewTChanKeyValueServer ¶
func NewTChanKeyValueServer(handler TChanKeyValue) thrift.TChanServer
NewTChanKeyValueServer wraps a handler for TChanKeyValue so it can be registered with a thrift.Server.
Types ¶
type Admin ¶
type Admin interface { BaseService ClearAll() (err error) }
type AdminClearAllArgs ¶
type AdminClearAllArgs struct { }
func NewAdminClearAllArgs ¶
func NewAdminClearAllArgs() *AdminClearAllArgs
func (*AdminClearAllArgs) String ¶
func (p *AdminClearAllArgs) String() string
type AdminClearAllResult ¶
type AdminClearAllResult struct {
NotAuthorized *NotAuthorized `thrift:"notAuthorized,1" json:"notAuthorized,omitempty"`
}
Attributes:
- NotAuthorized
func NewAdminClearAllResult ¶
func NewAdminClearAllResult() *AdminClearAllResult
func (*AdminClearAllResult) GetNotAuthorized ¶
func (p *AdminClearAllResult) GetNotAuthorized() *NotAuthorized
func (*AdminClearAllResult) IsSetNotAuthorized ¶
func (p *AdminClearAllResult) IsSetNotAuthorized() bool
func (*AdminClearAllResult) String ¶
func (p *AdminClearAllResult) String() string
type AdminClient ¶
type AdminClient struct {
*BaseServiceClient
}
func NewAdminClientFactory ¶
func NewAdminClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *AdminClient
func NewAdminClientProtocol ¶
func NewAdminClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *AdminClient
func (*AdminClient) ClearAll ¶
func (p *AdminClient) ClearAll() (err error)
type AdminProcessor ¶
type AdminProcessor struct {
*BaseServiceProcessor
}
func NewAdminProcessor ¶
func NewAdminProcessor(handler Admin) *AdminProcessor
type BaseService ¶
type BaseServiceClient ¶
type BaseServiceClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewBaseServiceClientFactory ¶
func NewBaseServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BaseServiceClient
func NewBaseServiceClientProtocol ¶
func NewBaseServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BaseServiceClient
func (*BaseServiceClient) HealthCheck ¶
func (p *BaseServiceClient) HealthCheck() (r string, err error)
type BaseServiceHealthCheckArgs ¶
type BaseServiceHealthCheckArgs struct { }
func NewBaseServiceHealthCheckArgs ¶
func NewBaseServiceHealthCheckArgs() *BaseServiceHealthCheckArgs
func (*BaseServiceHealthCheckArgs) Read ¶
func (p *BaseServiceHealthCheckArgs) Read(iprot thrift.TProtocol) error
func (*BaseServiceHealthCheckArgs) String ¶
func (p *BaseServiceHealthCheckArgs) String() string
type BaseServiceHealthCheckResult ¶
type BaseServiceHealthCheckResult struct {
Success *string `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewBaseServiceHealthCheckResult ¶
func NewBaseServiceHealthCheckResult() *BaseServiceHealthCheckResult
func (*BaseServiceHealthCheckResult) GetSuccess ¶
func (p *BaseServiceHealthCheckResult) GetSuccess() string
func (*BaseServiceHealthCheckResult) IsSetSuccess ¶
func (p *BaseServiceHealthCheckResult) IsSetSuccess() bool
func (*BaseServiceHealthCheckResult) Read ¶
func (p *BaseServiceHealthCheckResult) Read(iprot thrift.TProtocol) error
func (*BaseServiceHealthCheckResult) String ¶
func (p *BaseServiceHealthCheckResult) String() string
type BaseServiceProcessor ¶
type BaseServiceProcessor struct {
// contains filtered or unexported fields
}
func NewBaseServiceProcessor ¶
func NewBaseServiceProcessor(handler BaseService) *BaseServiceProcessor
func (*BaseServiceProcessor) AddToProcessorMap ¶
func (p *BaseServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*BaseServiceProcessor) GetProcessorFunction ¶
func (p *BaseServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*BaseServiceProcessor) Process ¶
func (p *BaseServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*BaseServiceProcessor) ProcessorMap ¶
func (p *BaseServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type InvalidKey ¶
type InvalidKey struct { }
var KeyValueGetResult_InvalidKey_DEFAULT *InvalidKey
var KeyValueSetResult_InvalidKey_DEFAULT *InvalidKey
func NewInvalidKey ¶
func NewInvalidKey() *InvalidKey
func (*InvalidKey) Error ¶
func (p *InvalidKey) Error() string
func (*InvalidKey) String ¶
func (p *InvalidKey) String() string
type KeyNotFound ¶
type KeyNotFound struct {
Key string `thrift:"key,1" json:"key"`
}
Attributes:
- Key
var KeyValueGetResult_NotFound_DEFAULT *KeyNotFound
func NewKeyNotFound ¶
func NewKeyNotFound() *KeyNotFound
func (*KeyNotFound) Error ¶
func (p *KeyNotFound) Error() string
func (*KeyNotFound) GetKey ¶
func (p *KeyNotFound) GetKey() string
func (*KeyNotFound) String ¶
func (p *KeyNotFound) String() string
type KeyValueClient ¶
type KeyValueClient struct {
*BaseServiceClient
}
func NewKeyValueClientFactory ¶
func NewKeyValueClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *KeyValueClient
func NewKeyValueClientProtocol ¶
func NewKeyValueClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *KeyValueClient
type KeyValueGetArgs ¶
type KeyValueGetArgs struct {
Key string `thrift:"key,1" json:"key"`
}
Attributes:
- Key
func NewKeyValueGetArgs ¶
func NewKeyValueGetArgs() *KeyValueGetArgs
func (*KeyValueGetArgs) GetKey ¶
func (p *KeyValueGetArgs) GetKey() string
func (*KeyValueGetArgs) String ¶
func (p *KeyValueGetArgs) String() string
type KeyValueGetResult ¶
type KeyValueGetResult struct { Success *string `thrift:"success,0" json:"success,omitempty"` NotFound *KeyNotFound `thrift:"notFound,1" json:"notFound,omitempty"` InvalidKey *InvalidKey `thrift:"invalidKey,2" json:"invalidKey,omitempty"` }
Attributes:
- Success
- NotFound
- InvalidKey
func NewKeyValueGetResult ¶
func NewKeyValueGetResult() *KeyValueGetResult
func (*KeyValueGetResult) GetInvalidKey ¶
func (p *KeyValueGetResult) GetInvalidKey() *InvalidKey
func (*KeyValueGetResult) GetNotFound ¶
func (p *KeyValueGetResult) GetNotFound() *KeyNotFound
func (*KeyValueGetResult) GetSuccess ¶
func (p *KeyValueGetResult) GetSuccess() string
func (*KeyValueGetResult) IsSetInvalidKey ¶
func (p *KeyValueGetResult) IsSetInvalidKey() bool
func (*KeyValueGetResult) IsSetNotFound ¶
func (p *KeyValueGetResult) IsSetNotFound() bool
func (*KeyValueGetResult) IsSetSuccess ¶
func (p *KeyValueGetResult) IsSetSuccess() bool
func (*KeyValueGetResult) String ¶
func (p *KeyValueGetResult) String() string
type KeyValueProcessor ¶
type KeyValueProcessor struct {
*BaseServiceProcessor
}
func NewKeyValueProcessor ¶
func NewKeyValueProcessor(handler KeyValue) *KeyValueProcessor
type KeyValueSetArgs ¶
type KeyValueSetArgs struct { Key string `thrift:"key,1" json:"key"` Value string `thrift:"value,2" json:"value"` }
Attributes:
- Key
- Value
func NewKeyValueSetArgs ¶
func NewKeyValueSetArgs() *KeyValueSetArgs
func (*KeyValueSetArgs) GetKey ¶
func (p *KeyValueSetArgs) GetKey() string
func (*KeyValueSetArgs) GetValue ¶
func (p *KeyValueSetArgs) GetValue() string
func (*KeyValueSetArgs) String ¶
func (p *KeyValueSetArgs) String() string
type KeyValueSetResult ¶
type KeyValueSetResult struct {
InvalidKey *InvalidKey `thrift:"invalidKey,1" json:"invalidKey,omitempty"`
}
Attributes:
- InvalidKey
func NewKeyValueSetResult ¶
func NewKeyValueSetResult() *KeyValueSetResult
func (*KeyValueSetResult) GetInvalidKey ¶
func (p *KeyValueSetResult) GetInvalidKey() *InvalidKey
func (*KeyValueSetResult) IsSetInvalidKey ¶
func (p *KeyValueSetResult) IsSetInvalidKey() bool
func (*KeyValueSetResult) String ¶
func (p *KeyValueSetResult) String() string
type NotAuthorized ¶
type NotAuthorized struct { }
var AdminClearAllResult_NotAuthorized_DEFAULT *NotAuthorized
func NewNotAuthorized ¶
func NewNotAuthorized() *NotAuthorized
func (*NotAuthorized) Error ¶
func (p *NotAuthorized) Error() string
func (*NotAuthorized) String ¶
func (p *NotAuthorized) String() string
type TChanAdmin ¶
type TChanAdmin interface { TChanBaseService ClearAll(ctx thrift.Context) error }
TChanAdmin is the interface that defines the server handler and client interface.
func NewTChanAdminClient ¶
func NewTChanAdminClient(client thrift.TChanClient) TChanAdmin
NewTChanAdminClient creates a client that can be used to make remote calls.
type TChanBaseService ¶
TChanBaseService is the interface that defines the server handler and client interface.
func NewTChanBaseServiceClient ¶
func NewTChanBaseServiceClient(client thrift.TChanClient) TChanBaseService
NewTChanBaseServiceClient creates a client that can be used to make remote calls.
type TChanKeyValue ¶
type TChanKeyValue interface { TChanBaseService Get(ctx thrift.Context, key string) (string, error) Set(ctx thrift.Context, key string, value string) error }
TChanKeyValue is the interface that defines the server handler and client interface.
func NewTChanKeyValueClient ¶
func NewTChanKeyValueClient(client thrift.TChanClient) TChanKeyValue
NewTChanKeyValueClient creates a client that can be used to make remote calls.