Documentation ¶
Index ¶
- Variables
- type Account
- func (p *Account) GetAlterID() int32
- func (p *Account) GetID() string
- func (p *Account) Read(iprot thrift.TProtocol) error
- func (p *Account) ReadField1(iprot thrift.TProtocol) error
- func (p *Account) ReadField2(iprot thrift.TProtocol) error
- func (p *Account) String() string
- func (p *Account) Write(oprot thrift.TProtocol) error
- type GetUserResponse
- func (p *GetUserResponse) GetFound() bool
- func (p *GetUserResponse) GetTime() int64
- func (p *GetUserResponse) GetUser() *MemoryUser
- func (p *GetUserResponse) IsSetUser() bool
- func (p *GetUserResponse) Read(iprot thrift.TProtocol) error
- func (p *GetUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *GetUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *GetUserResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *GetUserResponse) String() string
- func (p *GetUserResponse) Write(oprot thrift.TProtocol) error
- type MemoryUser
- func (p *MemoryUser) GetAccount() *Account
- func (p *MemoryUser) GetEmail() string
- func (p *MemoryUser) GetLevel() int32
- func (p *MemoryUser) IsSetAccount() bool
- func (p *MemoryUser) Read(iprot thrift.TProtocol) error
- func (p *MemoryUser) ReadField1(iprot thrift.TProtocol) error
- func (p *MemoryUser) ReadField2(iprot thrift.TProtocol) error
- func (p *MemoryUser) ReadField3(iprot thrift.TProtocol) error
- func (p *MemoryUser) String() string
- func (p *MemoryUser) Write(oprot thrift.TProtocol) error
- type UserSvc
- type UserSvcAddArgs
- func (p *UserSvcAddArgs) GetU() *MemoryUser
- func (p *UserSvcAddArgs) IsSetU() bool
- func (p *UserSvcAddArgs) Read(iprot thrift.TProtocol) error
- func (p *UserSvcAddArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserSvcAddArgs) String() string
- func (p *UserSvcAddArgs) Write(oprot thrift.TProtocol) error
- type UserSvcAddResult
- type UserSvcClient
- func (p *UserSvcClient) Add(ctx context.Context, u *MemoryUser) (err error)
- func (p *UserSvcClient) Client_() thrift.TClient
- func (p *UserSvcClient) Close(ctx context.Context) (err error)
- func (p *UserSvcClient) Get(ctx context.Context, userHash []byte) (r *GetUserResponse, err error)
- func (p *UserSvcClient) Remove(ctx context.Context, email string) (err error)
- type UserSvcCloseArgs
- type UserSvcCloseResult
- type UserSvcGetArgs
- type UserSvcGetResult
- func (p *UserSvcGetResult) GetSuccess() *GetUserResponse
- func (p *UserSvcGetResult) IsSetSuccess() bool
- func (p *UserSvcGetResult) Read(iprot thrift.TProtocol) error
- func (p *UserSvcGetResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserSvcGetResult) String() string
- func (p *UserSvcGetResult) Write(oprot thrift.TProtocol) error
- type UserSvcProcessor
- func (p *UserSvcProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *UserSvcProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *UserSvcProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *UserSvcProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type UserSvcRemoveArgs
- type UserSvcRemoveResult
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID string `thrift:"ID,1,required" db:"ID" json:"ID"` AlterID int32 `thrift:"AlterID,2,required" db:"AlterID" json:"AlterID"` }
Attributes:
- ID
- AlterID
var MemoryUser_Account_DEFAULT *Account
func NewAccount ¶
func NewAccount() *Account
func (*Account) GetAlterID ¶
type GetUserResponse ¶
type GetUserResponse struct { User *MemoryUser `thrift:"User,1,required" db:"User" json:"User"` Time int64 `thrift:"Time,2,required" db:"Time" json:"Time"` Found bool `thrift:"Found,3,required" db:"Found" json:"Found"` }
Attributes:
- User
- Time
- Found
var UserSvcGetResult_Success_DEFAULT *GetUserResponse
func NewGetUserResponse ¶
func NewGetUserResponse() *GetUserResponse
func (*GetUserResponse) GetFound ¶
func (p *GetUserResponse) GetFound() bool
func (*GetUserResponse) GetTime ¶
func (p *GetUserResponse) GetTime() int64
func (*GetUserResponse) GetUser ¶
func (p *GetUserResponse) GetUser() *MemoryUser
func (*GetUserResponse) IsSetUser ¶
func (p *GetUserResponse) IsSetUser() bool
func (*GetUserResponse) ReadField1 ¶
func (p *GetUserResponse) ReadField1(iprot thrift.TProtocol) error
func (*GetUserResponse) ReadField2 ¶
func (p *GetUserResponse) ReadField2(iprot thrift.TProtocol) error
func (*GetUserResponse) ReadField3 ¶
func (p *GetUserResponse) ReadField3(iprot thrift.TProtocol) error
func (*GetUserResponse) String ¶
func (p *GetUserResponse) String() string
type MemoryUser ¶
type MemoryUser struct { Email string `thrift:"Email,1,required" db:"Email" json:"Email"` Level int32 `thrift:"Level,2,required" db:"Level" json:"Level"` Account *Account `thrift:"Account,3,required" db:"Account" json:"Account"` }
Attributes:
- Level
- Account
var GetUserResponse_User_DEFAULT *MemoryUser
var UserSvcAddArgs_U_DEFAULT *MemoryUser
func NewMemoryUser ¶
func NewMemoryUser() *MemoryUser
func (*MemoryUser) GetAccount ¶
func (p *MemoryUser) GetAccount() *Account
func (*MemoryUser) GetEmail ¶
func (p *MemoryUser) GetEmail() string
func (*MemoryUser) GetLevel ¶
func (p *MemoryUser) GetLevel() int32
func (*MemoryUser) IsSetAccount ¶
func (p *MemoryUser) IsSetAccount() bool
func (*MemoryUser) ReadField1 ¶
func (p *MemoryUser) ReadField1(iprot thrift.TProtocol) error
func (*MemoryUser) ReadField2 ¶
func (p *MemoryUser) ReadField2(iprot thrift.TProtocol) error
func (*MemoryUser) ReadField3 ¶
func (p *MemoryUser) ReadField3(iprot thrift.TProtocol) error
func (*MemoryUser) String ¶
func (p *MemoryUser) String() string
type UserSvc ¶
type UserSvc interface { // Parameters: // - U Add(ctx context.Context, u *MemoryUser) (err error) Close(ctx context.Context) (err error) // Parameters: // - UserHash Get(ctx context.Context, userHash []byte) (r *GetUserResponse, err error) // Parameters: // - Email Remove(ctx context.Context, email string) (err error) }
type UserSvcAddArgs ¶
type UserSvcAddArgs struct {
U *MemoryUser `thrift:"u,1" db:"u" json:"u"`
}
Attributes:
- U
func NewUserSvcAddArgs ¶
func NewUserSvcAddArgs() *UserSvcAddArgs
func (*UserSvcAddArgs) GetU ¶
func (p *UserSvcAddArgs) GetU() *MemoryUser
func (*UserSvcAddArgs) IsSetU ¶
func (p *UserSvcAddArgs) IsSetU() bool
func (*UserSvcAddArgs) ReadField1 ¶
func (p *UserSvcAddArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserSvcAddArgs) String ¶
func (p *UserSvcAddArgs) String() string
type UserSvcAddResult ¶
type UserSvcAddResult struct { }
func NewUserSvcAddResult ¶
func NewUserSvcAddResult() *UserSvcAddResult
func (*UserSvcAddResult) String ¶
func (p *UserSvcAddResult) String() string
type UserSvcClient ¶
type UserSvcClient struct {
// contains filtered or unexported fields
}
func NewUserSvcClient ¶
func NewUserSvcClient(c thrift.TClient) *UserSvcClient
func NewUserSvcClientFactory ¶
func NewUserSvcClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *UserSvcClient
func NewUserSvcClientProtocol ¶
func NewUserSvcClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserSvcClient
func (*UserSvcClient) Add ¶
func (p *UserSvcClient) Add(ctx context.Context, u *MemoryUser) (err error)
Parameters:
- U
func (*UserSvcClient) Client_ ¶
func (p *UserSvcClient) Client_() thrift.TClient
func (*UserSvcClient) Get ¶
func (p *UserSvcClient) Get(ctx context.Context, userHash []byte) (r *GetUserResponse, err error)
Parameters:
- UserHash
type UserSvcCloseArgs ¶
type UserSvcCloseArgs struct { }
func NewUserSvcCloseArgs ¶
func NewUserSvcCloseArgs() *UserSvcCloseArgs
func (*UserSvcCloseArgs) String ¶
func (p *UserSvcCloseArgs) String() string
type UserSvcCloseResult ¶
type UserSvcCloseResult struct { }
func NewUserSvcCloseResult ¶
func NewUserSvcCloseResult() *UserSvcCloseResult
func (*UserSvcCloseResult) String ¶
func (p *UserSvcCloseResult) String() string
type UserSvcGetArgs ¶
type UserSvcGetArgs struct {
UserHash []byte `thrift:"userHash,1" db:"userHash" json:"userHash"`
}
Attributes:
- UserHash
func NewUserSvcGetArgs ¶
func NewUserSvcGetArgs() *UserSvcGetArgs
func (*UserSvcGetArgs) GetUserHash ¶
func (p *UserSvcGetArgs) GetUserHash() []byte
func (*UserSvcGetArgs) ReadField1 ¶
func (p *UserSvcGetArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserSvcGetArgs) String ¶
func (p *UserSvcGetArgs) String() string
type UserSvcGetResult ¶
type UserSvcGetResult struct {
Success *GetUserResponse `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewUserSvcGetResult ¶
func NewUserSvcGetResult() *UserSvcGetResult
func (*UserSvcGetResult) GetSuccess ¶
func (p *UserSvcGetResult) GetSuccess() *GetUserResponse
func (*UserSvcGetResult) IsSetSuccess ¶
func (p *UserSvcGetResult) IsSetSuccess() bool
func (*UserSvcGetResult) ReadField0 ¶
func (p *UserSvcGetResult) ReadField0(iprot thrift.TProtocol) error
func (*UserSvcGetResult) String ¶
func (p *UserSvcGetResult) String() string
type UserSvcProcessor ¶
type UserSvcProcessor struct {
// contains filtered or unexported fields
}
func NewUserSvcProcessor ¶
func NewUserSvcProcessor(handler UserSvc) *UserSvcProcessor
func (*UserSvcProcessor) AddToProcessorMap ¶
func (p *UserSvcProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*UserSvcProcessor) GetProcessorFunction ¶
func (p *UserSvcProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*UserSvcProcessor) Process ¶
func (p *UserSvcProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*UserSvcProcessor) ProcessorMap ¶
func (p *UserSvcProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type UserSvcRemoveArgs ¶
type UserSvcRemoveArgs struct {
Email string `thrift:"email,1" db:"email" json:"email"`
}
Attributes:
func NewUserSvcRemoveArgs ¶
func NewUserSvcRemoveArgs() *UserSvcRemoveArgs
func (*UserSvcRemoveArgs) GetEmail ¶
func (p *UserSvcRemoveArgs) GetEmail() string
func (*UserSvcRemoveArgs) ReadField1 ¶
func (p *UserSvcRemoveArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserSvcRemoveArgs) String ¶
func (p *UserSvcRemoveArgs) String() string
type UserSvcRemoveResult ¶
type UserSvcRemoveResult struct { }
func NewUserSvcRemoveResult ¶
func NewUserSvcRemoveResult() *UserSvcRemoveResult
func (*UserSvcRemoveResult) String ¶
func (p *UserSvcRemoveResult) String() string
Click to show internal directories.
Click to hide internal directories.