Documentation ¶
Index ¶
- Variables
- type Code
- type CreateUserRequest
- func (p *CreateUserRequest) GetAge() (v int64)
- func (p *CreateUserRequest) GetGender() (v Gender)
- func (p *CreateUserRequest) GetIntroduce() (v string)
- func (p *CreateUserRequest) GetName() (v string)
- func (p *CreateUserRequest) InitDefault()
- func (p *CreateUserRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateUserRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateUserRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateUserRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *CreateUserRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *CreateUserRequest) String() string
- func (p *CreateUserRequest) Write(oprot thrift.TProtocol) (err error)
- type CreateUserResponse
- func (p *CreateUserResponse) GetCode() (v Code)
- func (p *CreateUserResponse) GetMsg() (v string)
- func (p *CreateUserResponse) InitDefault()
- func (p *CreateUserResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateUserResponse) String() string
- func (p *CreateUserResponse) Write(oprot thrift.TProtocol) (err error)
- type DeleteUserRequest
- func (p *DeleteUserRequest) GetUserID() (v int64)
- func (p *DeleteUserRequest) InitDefault()
- func (p *DeleteUserRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *DeleteUserRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *DeleteUserRequest) String() string
- func (p *DeleteUserRequest) Write(oprot thrift.TProtocol) (err error)
- type DeleteUserResponse
- func (p *DeleteUserResponse) GetCode() (v Code)
- func (p *DeleteUserResponse) GetMsg() (v string)
- func (p *DeleteUserResponse) InitDefault()
- func (p *DeleteUserResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *DeleteUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *DeleteUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *DeleteUserResponse) String() string
- func (p *DeleteUserResponse) Write(oprot thrift.TProtocol) (err error)
- type Gender
- type QueryUserRequest
- func (p *QueryUserRequest) GetKeyword() (v string)
- func (p *QueryUserRequest) GetPage() (v int64)
- func (p *QueryUserRequest) GetPageSize() (v int64)
- func (p *QueryUserRequest) InitDefault()
- func (p *QueryUserRequest) IsSetKeyword() bool
- func (p *QueryUserRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *QueryUserRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *QueryUserRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *QueryUserRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *QueryUserRequest) String() string
- func (p *QueryUserRequest) Write(oprot thrift.TProtocol) (err error)
- type QueryUserResponse
- func (p *QueryUserResponse) GetCode() (v Code)
- func (p *QueryUserResponse) GetMsg() (v string)
- func (p *QueryUserResponse) GetTotal() (v int64)
- func (p *QueryUserResponse) GetUsers() (v []*User)
- func (p *QueryUserResponse) InitDefault()
- func (p *QueryUserResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *QueryUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *QueryUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *QueryUserResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *QueryUserResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *QueryUserResponse) String() string
- func (p *QueryUserResponse) Write(oprot thrift.TProtocol) (err error)
- type UpdateUserRequest
- func (p *UpdateUserRequest) GetAge() (v int64)
- func (p *UpdateUserRequest) GetGender() (v Gender)
- func (p *UpdateUserRequest) GetIntroduce() (v string)
- func (p *UpdateUserRequest) GetName() (v string)
- func (p *UpdateUserRequest) GetUserID() (v int64)
- func (p *UpdateUserRequest) InitDefault()
- func (p *UpdateUserRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateUserRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateUserRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateUserRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *UpdateUserRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *UpdateUserRequest) ReadField5(iprot thrift.TProtocol) error
- func (p *UpdateUserRequest) String() string
- func (p *UpdateUserRequest) Write(oprot thrift.TProtocol) (err error)
- type UpdateUserResponse
- func (p *UpdateUserResponse) GetCode() (v Code)
- func (p *UpdateUserResponse) GetMsg() (v string)
- func (p *UpdateUserResponse) InitDefault()
- func (p *UpdateUserResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateUserResponse) String() string
- func (p *UpdateUserResponse) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) GetAge() (v int64)
- func (p *User) GetGender() (v Gender)
- func (p *User) GetIntroduce() (v string)
- func (p *User) GetName() (v string)
- func (p *User) GetUserID() (v int64)
- func (p *User) InitDefault()
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField5(iprot thrift.TProtocol) error
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type UserService
- type UserServiceClient
- func (p *UserServiceClient) Client_() thrift.TClient
- func (p *UserServiceClient) CreateUser(ctx context.Context, req *CreateUserRequest) (r *CreateUserResponse, err error)
- func (p *UserServiceClient) DeleteUser(ctx context.Context, req *DeleteUserRequest) (r *DeleteUserResponse, err error)
- func (p *UserServiceClient) QueryUser(ctx context.Context, req *QueryUserRequest) (r *QueryUserResponse, err error)
- func (p *UserServiceClient) UpdateUser(ctx context.Context, req *UpdateUserRequest) (r *UpdateUserResponse, err error)
- type UserServiceCreateUserArgs
- func (p *UserServiceCreateUserArgs) GetReq() (v *CreateUserRequest)
- func (p *UserServiceCreateUserArgs) InitDefault()
- func (p *UserServiceCreateUserArgs) IsSetReq() bool
- func (p *UserServiceCreateUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCreateUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceCreateUserArgs) String() string
- func (p *UserServiceCreateUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceCreateUserResult
- func (p *UserServiceCreateUserResult) GetSuccess() (v *CreateUserResponse)
- func (p *UserServiceCreateUserResult) InitDefault()
- func (p *UserServiceCreateUserResult) IsSetSuccess() bool
- func (p *UserServiceCreateUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCreateUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceCreateUserResult) String() string
- func (p *UserServiceCreateUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceDeleteUserArgs
- func (p *UserServiceDeleteUserArgs) GetReq() (v *DeleteUserRequest)
- func (p *UserServiceDeleteUserArgs) InitDefault()
- func (p *UserServiceDeleteUserArgs) IsSetReq() bool
- func (p *UserServiceDeleteUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceDeleteUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceDeleteUserArgs) String() string
- func (p *UserServiceDeleteUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceDeleteUserResult
- func (p *UserServiceDeleteUserResult) GetSuccess() (v *DeleteUserResponse)
- func (p *UserServiceDeleteUserResult) InitDefault()
- func (p *UserServiceDeleteUserResult) IsSetSuccess() bool
- func (p *UserServiceDeleteUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceDeleteUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceDeleteUserResult) String() string
- func (p *UserServiceDeleteUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceProcessor
- func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type UserServiceQueryUserArgs
- func (p *UserServiceQueryUserArgs) GetReq() (v *QueryUserRequest)
- func (p *UserServiceQueryUserArgs) InitDefault()
- func (p *UserServiceQueryUserArgs) IsSetReq() bool
- func (p *UserServiceQueryUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceQueryUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceQueryUserArgs) String() string
- func (p *UserServiceQueryUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceQueryUserResult
- func (p *UserServiceQueryUserResult) GetSuccess() (v *QueryUserResponse)
- func (p *UserServiceQueryUserResult) InitDefault()
- func (p *UserServiceQueryUserResult) IsSetSuccess() bool
- func (p *UserServiceQueryUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceQueryUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceQueryUserResult) String() string
- func (p *UserServiceQueryUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUpdateUserArgs
- func (p *UserServiceUpdateUserArgs) GetReq() (v *UpdateUserRequest)
- func (p *UserServiceUpdateUserArgs) InitDefault()
- func (p *UserServiceUpdateUserArgs) IsSetReq() bool
- func (p *UserServiceUpdateUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUpdateUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceUpdateUserArgs) String() string
- func (p *UserServiceUpdateUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUpdateUserResult
- func (p *UserServiceUpdateUserResult) GetSuccess() (v *UpdateUserResponse)
- func (p *UserServiceUpdateUserResult) InitDefault()
- func (p *UserServiceUpdateUserResult) IsSetSuccess() bool
- func (p *UserServiceUpdateUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUpdateUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceUpdateUserResult) String() string
- func (p *UserServiceUpdateUserResult) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryUserRequest_Keyword_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Name string `thrift:"name,1" form:"name" form:"name" json:"name" vd:"(len($) > 0 && len($) < 100)"` Gender Gender `thrift:"gender,2" form:"gender" json:"gender" vd:"($ == 1||$ == 2)"` Age int64 `thrift:"age,3" form:"age" json:"age" vd:"$>0"` Introduce string `thrift:"introduce,4" form:"introduce" json:"introduce" vd:"(len($) > 0 && len($) < 1000)"` }
var UserServiceCreateUserArgs_Req_DEFAULT *CreateUserRequest
func NewCreateUserRequest ¶
func NewCreateUserRequest() *CreateUserRequest
func (*CreateUserRequest) GetAge ¶
func (p *CreateUserRequest) GetAge() (v int64)
func (*CreateUserRequest) GetGender ¶
func (p *CreateUserRequest) GetGender() (v Gender)
func (*CreateUserRequest) GetIntroduce ¶
func (p *CreateUserRequest) GetIntroduce() (v string)
func (*CreateUserRequest) GetName ¶
func (p *CreateUserRequest) GetName() (v string)
func (*CreateUserRequest) InitDefault ¶
func (p *CreateUserRequest) InitDefault()
func (*CreateUserRequest) Read ¶
func (p *CreateUserRequest) Read(iprot thrift.TProtocol) (err error)
func (*CreateUserRequest) ReadField1 ¶
func (p *CreateUserRequest) ReadField1(iprot thrift.TProtocol) error
func (*CreateUserRequest) ReadField2 ¶
func (p *CreateUserRequest) ReadField2(iprot thrift.TProtocol) error
func (*CreateUserRequest) ReadField3 ¶
func (p *CreateUserRequest) ReadField3(iprot thrift.TProtocol) error
func (*CreateUserRequest) ReadField4 ¶
func (p *CreateUserRequest) ReadField4(iprot thrift.TProtocol) error
func (*CreateUserRequest) String ¶
func (p *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { Code Code `thrift:"code,1" form:"code" json:"code"` Msg string `thrift:"msg,2" form:"msg" json:"msg"` }
var UserServiceCreateUserResult_Success_DEFAULT *CreateUserResponse
func NewCreateUserResponse ¶
func NewCreateUserResponse() *CreateUserResponse
func (*CreateUserResponse) GetCode ¶
func (p *CreateUserResponse) GetCode() (v Code)
func (*CreateUserResponse) GetMsg ¶
func (p *CreateUserResponse) GetMsg() (v string)
func (*CreateUserResponse) InitDefault ¶
func (p *CreateUserResponse) InitDefault()
func (*CreateUserResponse) Read ¶
func (p *CreateUserResponse) Read(iprot thrift.TProtocol) (err error)
func (*CreateUserResponse) ReadField1 ¶
func (p *CreateUserResponse) ReadField1(iprot thrift.TProtocol) error
func (*CreateUserResponse) ReadField2 ¶
func (p *CreateUserResponse) ReadField2(iprot thrift.TProtocol) error
func (*CreateUserResponse) String ¶
func (p *CreateUserResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { // user id UserID int64 `thrift:"user_id,1" json:"user_id" path:"user_id" vd:"$>0"` }
var UserServiceDeleteUserArgs_Req_DEFAULT *DeleteUserRequest
func NewDeleteUserRequest ¶
func NewDeleteUserRequest() *DeleteUserRequest
func (*DeleteUserRequest) GetUserID ¶
func (p *DeleteUserRequest) GetUserID() (v int64)
func (*DeleteUserRequest) InitDefault ¶
func (p *DeleteUserRequest) InitDefault()
func (*DeleteUserRequest) Read ¶
func (p *DeleteUserRequest) Read(iprot thrift.TProtocol) (err error)
func (*DeleteUserRequest) ReadField1 ¶
func (p *DeleteUserRequest) ReadField1(iprot thrift.TProtocol) error
func (*DeleteUserRequest) String ¶
func (p *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct { Code Code `thrift:"code,1" form:"code" json:"code"` Msg string `thrift:"msg,2" form:"msg" json:"msg"` }
var UserServiceDeleteUserResult_Success_DEFAULT *DeleteUserResponse
func NewDeleteUserResponse ¶
func NewDeleteUserResponse() *DeleteUserResponse
func (*DeleteUserResponse) GetCode ¶
func (p *DeleteUserResponse) GetCode() (v Code)
func (*DeleteUserResponse) GetMsg ¶
func (p *DeleteUserResponse) GetMsg() (v string)
func (*DeleteUserResponse) InitDefault ¶
func (p *DeleteUserResponse) InitDefault()
func (*DeleteUserResponse) Read ¶
func (p *DeleteUserResponse) Read(iprot thrift.TProtocol) (err error)
func (*DeleteUserResponse) ReadField1 ¶
func (p *DeleteUserResponse) ReadField1(iprot thrift.TProtocol) error
func (*DeleteUserResponse) ReadField2 ¶
func (p *DeleteUserResponse) ReadField2(iprot thrift.TProtocol) error
func (*DeleteUserResponse) String ¶
func (p *DeleteUserResponse) String() string
type QueryUserRequest ¶
type QueryUserRequest struct { Keyword *string `thrift:"Keyword,1,optional" form:"keyword" form:"keyword" json:"keyword,omitempty" query:"keyword"` Page int64 `thrift:"page,2" form:"page" json:"page" query:"page" vd:"$ > 0"` PageSize int64 `thrift:"page_size,3" form:"page_size" json:"page_size" query:"page_size" vd:"($ > 0 || $ <= 100)"` }
var UserServiceQueryUserArgs_Req_DEFAULT *QueryUserRequest
func NewQueryUserRequest ¶
func NewQueryUserRequest() *QueryUserRequest
func (*QueryUserRequest) GetKeyword ¶
func (p *QueryUserRequest) GetKeyword() (v string)
func (*QueryUserRequest) GetPage ¶
func (p *QueryUserRequest) GetPage() (v int64)
func (*QueryUserRequest) GetPageSize ¶
func (p *QueryUserRequest) GetPageSize() (v int64)
func (*QueryUserRequest) InitDefault ¶
func (p *QueryUserRequest) InitDefault()
func (*QueryUserRequest) IsSetKeyword ¶
func (p *QueryUserRequest) IsSetKeyword() bool
func (*QueryUserRequest) ReadField1 ¶
func (p *QueryUserRequest) ReadField1(iprot thrift.TProtocol) error
func (*QueryUserRequest) ReadField2 ¶
func (p *QueryUserRequest) ReadField2(iprot thrift.TProtocol) error
func (*QueryUserRequest) ReadField3 ¶
func (p *QueryUserRequest) ReadField3(iprot thrift.TProtocol) error
func (*QueryUserRequest) String ¶
func (p *QueryUserRequest) String() string
type QueryUserResponse ¶
type QueryUserResponse struct { Code Code `thrift:"code,1" form:"code" json:"code"` Msg string `thrift:"msg,2" form:"msg" json:"msg"` Users []*User `thrift:"users,3" form:"users" json:"users"` Total int64 `thrift:"total,4" form:"total" json:"total"` }
var UserServiceQueryUserResult_Success_DEFAULT *QueryUserResponse
func NewQueryUserResponse ¶
func NewQueryUserResponse() *QueryUserResponse
func (*QueryUserResponse) GetCode ¶
func (p *QueryUserResponse) GetCode() (v Code)
func (*QueryUserResponse) GetMsg ¶
func (p *QueryUserResponse) GetMsg() (v string)
func (*QueryUserResponse) GetTotal ¶
func (p *QueryUserResponse) GetTotal() (v int64)
func (*QueryUserResponse) GetUsers ¶
func (p *QueryUserResponse) GetUsers() (v []*User)
func (*QueryUserResponse) InitDefault ¶
func (p *QueryUserResponse) InitDefault()
func (*QueryUserResponse) Read ¶
func (p *QueryUserResponse) Read(iprot thrift.TProtocol) (err error)
func (*QueryUserResponse) ReadField1 ¶
func (p *QueryUserResponse) ReadField1(iprot thrift.TProtocol) error
func (*QueryUserResponse) ReadField2 ¶
func (p *QueryUserResponse) ReadField2(iprot thrift.TProtocol) error
func (*QueryUserResponse) ReadField3 ¶
func (p *QueryUserResponse) ReadField3(iprot thrift.TProtocol) error
func (*QueryUserResponse) ReadField4 ¶
func (p *QueryUserResponse) ReadField4(iprot thrift.TProtocol) error
func (*QueryUserResponse) String ¶
func (p *QueryUserResponse) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { UserID int64 `thrift:"user_id,1" json:"user_id" path:"user_id" vd:"$>0"` Name string `thrift:"name,2" form:"name" json:"name" vd:"(len($) > 0 && len($) < 100)"` Gender Gender `thrift:"gender,3" form:"gender" json:"gender" vd:"($ == 1||$ == 2)"` Age int64 `thrift:"age,4" form:"age" json:"age" vd:"$>0"` Introduce string `thrift:"introduce,5" form:"introduce" form:"introduce" json:"introduce" vd:"(len($) > 0 && len($) < 1000)"` }
var UserServiceUpdateUserArgs_Req_DEFAULT *UpdateUserRequest
func NewUpdateUserRequest ¶
func NewUpdateUserRequest() *UpdateUserRequest
func (*UpdateUserRequest) GetAge ¶
func (p *UpdateUserRequest) GetAge() (v int64)
func (*UpdateUserRequest) GetGender ¶
func (p *UpdateUserRequest) GetGender() (v Gender)
func (*UpdateUserRequest) GetIntroduce ¶
func (p *UpdateUserRequest) GetIntroduce() (v string)
func (*UpdateUserRequest) GetName ¶
func (p *UpdateUserRequest) GetName() (v string)
func (*UpdateUserRequest) GetUserID ¶
func (p *UpdateUserRequest) GetUserID() (v int64)
func (*UpdateUserRequest) InitDefault ¶
func (p *UpdateUserRequest) InitDefault()
func (*UpdateUserRequest) Read ¶
func (p *UpdateUserRequest) Read(iprot thrift.TProtocol) (err error)
func (*UpdateUserRequest) ReadField1 ¶
func (p *UpdateUserRequest) ReadField1(iprot thrift.TProtocol) error
func (*UpdateUserRequest) ReadField2 ¶
func (p *UpdateUserRequest) ReadField2(iprot thrift.TProtocol) error
func (*UpdateUserRequest) ReadField3 ¶
func (p *UpdateUserRequest) ReadField3(iprot thrift.TProtocol) error
func (*UpdateUserRequest) ReadField4 ¶
func (p *UpdateUserRequest) ReadField4(iprot thrift.TProtocol) error
func (*UpdateUserRequest) ReadField5 ¶
func (p *UpdateUserRequest) ReadField5(iprot thrift.TProtocol) error
func (*UpdateUserRequest) String ¶
func (p *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { Code Code `thrift:"code,1" form:"code" json:"code"` Msg string `thrift:"msg,2" form:"msg" json:"msg"` }
var UserServiceUpdateUserResult_Success_DEFAULT *UpdateUserResponse
func NewUpdateUserResponse ¶
func NewUpdateUserResponse() *UpdateUserResponse
func (*UpdateUserResponse) GetCode ¶
func (p *UpdateUserResponse) GetCode() (v Code)
func (*UpdateUserResponse) GetMsg ¶
func (p *UpdateUserResponse) GetMsg() (v string)
func (*UpdateUserResponse) InitDefault ¶
func (p *UpdateUserResponse) InitDefault()
func (*UpdateUserResponse) Read ¶
func (p *UpdateUserResponse) Read(iprot thrift.TProtocol) (err error)
func (*UpdateUserResponse) ReadField1 ¶
func (p *UpdateUserResponse) ReadField1(iprot thrift.TProtocol) error
func (*UpdateUserResponse) ReadField2 ¶
func (p *UpdateUserResponse) ReadField2(iprot thrift.TProtocol) error
func (*UpdateUserResponse) String ¶
func (p *UpdateUserResponse) String() string
type User ¶
type User struct { UserID int64 `thrift:"user_id,1" form:"user_id" json:"user_id" query:"user_id"` Name string `thrift:"name,2" form:"name" json:"name" query:"name"` Gender Gender `thrift:"gender,3" form:"gender" json:"gender" query:"gender"` Age int64 `thrift:"age,4" form:"age" json:"age" query:"age"` Introduce string `thrift:"introduce,5" form:"introduce" json:"introduce" query:"introduce"` }
func (*User) GetIntroduce ¶
func (*User) InitDefault ¶
func (p *User) InitDefault()
type UserService ¶
type UserService interface { UpdateUser(ctx context.Context, req *UpdateUserRequest) (r *UpdateUserResponse, err error) DeleteUser(ctx context.Context, req *DeleteUserRequest) (r *DeleteUserResponse, err error) QueryUser(ctx context.Context, req *QueryUserRequest) (r *QueryUserResponse, err error) CreateUser(ctx context.Context, req *CreateUserRequest) (r *CreateUserResponse, err error) }
user service description
type UserServiceClient ¶
type UserServiceClient struct {
// contains filtered or unexported fields
}
func NewUserServiceClient ¶
func NewUserServiceClient(c thrift.TClient) *UserServiceClient
func NewUserServiceClientFactory ¶
func NewUserServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *UserServiceClient
func NewUserServiceClientProtocol ¶
func NewUserServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserServiceClient
func (*UserServiceClient) Client_ ¶
func (p *UserServiceClient) Client_() thrift.TClient
func (*UserServiceClient) CreateUser ¶
func (p *UserServiceClient) CreateUser(ctx context.Context, req *CreateUserRequest) (r *CreateUserResponse, err error)
func (*UserServiceClient) DeleteUser ¶
func (p *UserServiceClient) DeleteUser(ctx context.Context, req *DeleteUserRequest) (r *DeleteUserResponse, err error)
func (*UserServiceClient) QueryUser ¶
func (p *UserServiceClient) QueryUser(ctx context.Context, req *QueryUserRequest) (r *QueryUserResponse, err error)
func (*UserServiceClient) UpdateUser ¶
func (p *UserServiceClient) UpdateUser(ctx context.Context, req *UpdateUserRequest) (r *UpdateUserResponse, err error)
type UserServiceCreateUserArgs ¶
type UserServiceCreateUserArgs struct {
Req *CreateUserRequest `thrift:"req,1"`
}
func NewUserServiceCreateUserArgs ¶
func NewUserServiceCreateUserArgs() *UserServiceCreateUserArgs
func (*UserServiceCreateUserArgs) GetReq ¶
func (p *UserServiceCreateUserArgs) GetReq() (v *CreateUserRequest)
func (*UserServiceCreateUserArgs) InitDefault ¶
func (p *UserServiceCreateUserArgs) InitDefault()
func (*UserServiceCreateUserArgs) IsSetReq ¶
func (p *UserServiceCreateUserArgs) IsSetReq() bool
func (*UserServiceCreateUserArgs) Read ¶
func (p *UserServiceCreateUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCreateUserArgs) ReadField1 ¶
func (p *UserServiceCreateUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceCreateUserArgs) String ¶
func (p *UserServiceCreateUserArgs) String() string
type UserServiceCreateUserResult ¶
type UserServiceCreateUserResult struct {
Success *CreateUserResponse `thrift:"success,0,optional"`
}
func NewUserServiceCreateUserResult ¶
func NewUserServiceCreateUserResult() *UserServiceCreateUserResult
func (*UserServiceCreateUserResult) GetSuccess ¶
func (p *UserServiceCreateUserResult) GetSuccess() (v *CreateUserResponse)
func (*UserServiceCreateUserResult) InitDefault ¶
func (p *UserServiceCreateUserResult) InitDefault()
func (*UserServiceCreateUserResult) IsSetSuccess ¶
func (p *UserServiceCreateUserResult) IsSetSuccess() bool
func (*UserServiceCreateUserResult) Read ¶
func (p *UserServiceCreateUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCreateUserResult) ReadField0 ¶
func (p *UserServiceCreateUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceCreateUserResult) String ¶
func (p *UserServiceCreateUserResult) String() string
type UserServiceDeleteUserArgs ¶
type UserServiceDeleteUserArgs struct {
Req *DeleteUserRequest `thrift:"req,1"`
}
func NewUserServiceDeleteUserArgs ¶
func NewUserServiceDeleteUserArgs() *UserServiceDeleteUserArgs
func (*UserServiceDeleteUserArgs) GetReq ¶
func (p *UserServiceDeleteUserArgs) GetReq() (v *DeleteUserRequest)
func (*UserServiceDeleteUserArgs) InitDefault ¶
func (p *UserServiceDeleteUserArgs) InitDefault()
func (*UserServiceDeleteUserArgs) IsSetReq ¶
func (p *UserServiceDeleteUserArgs) IsSetReq() bool
func (*UserServiceDeleteUserArgs) Read ¶
func (p *UserServiceDeleteUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceDeleteUserArgs) ReadField1 ¶
func (p *UserServiceDeleteUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceDeleteUserArgs) String ¶
func (p *UserServiceDeleteUserArgs) String() string
type UserServiceDeleteUserResult ¶
type UserServiceDeleteUserResult struct {
Success *DeleteUserResponse `thrift:"success,0,optional"`
}
func NewUserServiceDeleteUserResult ¶
func NewUserServiceDeleteUserResult() *UserServiceDeleteUserResult
func (*UserServiceDeleteUserResult) GetSuccess ¶
func (p *UserServiceDeleteUserResult) GetSuccess() (v *DeleteUserResponse)
func (*UserServiceDeleteUserResult) InitDefault ¶
func (p *UserServiceDeleteUserResult) InitDefault()
func (*UserServiceDeleteUserResult) IsSetSuccess ¶
func (p *UserServiceDeleteUserResult) IsSetSuccess() bool
func (*UserServiceDeleteUserResult) Read ¶
func (p *UserServiceDeleteUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceDeleteUserResult) ReadField0 ¶
func (p *UserServiceDeleteUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceDeleteUserResult) String ¶
func (p *UserServiceDeleteUserResult) String() string
type UserServiceProcessor ¶
type UserServiceProcessor struct {
// contains filtered or unexported fields
}
func NewUserServiceProcessor ¶
func NewUserServiceProcessor(handler UserService) *UserServiceProcessor
func (*UserServiceProcessor) AddToProcessorMap ¶
func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*UserServiceProcessor) GetProcessorFunction ¶
func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*UserServiceProcessor) Process ¶
func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*UserServiceProcessor) ProcessorMap ¶
func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type UserServiceQueryUserArgs ¶
type UserServiceQueryUserArgs struct {
Req *QueryUserRequest `thrift:"req,1"`
}
func NewUserServiceQueryUserArgs ¶
func NewUserServiceQueryUserArgs() *UserServiceQueryUserArgs
func (*UserServiceQueryUserArgs) GetReq ¶
func (p *UserServiceQueryUserArgs) GetReq() (v *QueryUserRequest)
func (*UserServiceQueryUserArgs) InitDefault ¶
func (p *UserServiceQueryUserArgs) InitDefault()
func (*UserServiceQueryUserArgs) IsSetReq ¶
func (p *UserServiceQueryUserArgs) IsSetReq() bool
func (*UserServiceQueryUserArgs) Read ¶
func (p *UserServiceQueryUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceQueryUserArgs) ReadField1 ¶
func (p *UserServiceQueryUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceQueryUserArgs) String ¶
func (p *UserServiceQueryUserArgs) String() string
type UserServiceQueryUserResult ¶
type UserServiceQueryUserResult struct {
Success *QueryUserResponse `thrift:"success,0,optional"`
}
func NewUserServiceQueryUserResult ¶
func NewUserServiceQueryUserResult() *UserServiceQueryUserResult
func (*UserServiceQueryUserResult) GetSuccess ¶
func (p *UserServiceQueryUserResult) GetSuccess() (v *QueryUserResponse)
func (*UserServiceQueryUserResult) InitDefault ¶
func (p *UserServiceQueryUserResult) InitDefault()
func (*UserServiceQueryUserResult) IsSetSuccess ¶
func (p *UserServiceQueryUserResult) IsSetSuccess() bool
func (*UserServiceQueryUserResult) Read ¶
func (p *UserServiceQueryUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceQueryUserResult) ReadField0 ¶
func (p *UserServiceQueryUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceQueryUserResult) String ¶
func (p *UserServiceQueryUserResult) String() string
type UserServiceUpdateUserArgs ¶
type UserServiceUpdateUserArgs struct {
Req *UpdateUserRequest `thrift:"req,1"`
}
func NewUserServiceUpdateUserArgs ¶
func NewUserServiceUpdateUserArgs() *UserServiceUpdateUserArgs
func (*UserServiceUpdateUserArgs) GetReq ¶
func (p *UserServiceUpdateUserArgs) GetReq() (v *UpdateUserRequest)
func (*UserServiceUpdateUserArgs) InitDefault ¶
func (p *UserServiceUpdateUserArgs) InitDefault()
func (*UserServiceUpdateUserArgs) IsSetReq ¶
func (p *UserServiceUpdateUserArgs) IsSetReq() bool
func (*UserServiceUpdateUserArgs) Read ¶
func (p *UserServiceUpdateUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUpdateUserArgs) ReadField1 ¶
func (p *UserServiceUpdateUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceUpdateUserArgs) String ¶
func (p *UserServiceUpdateUserArgs) String() string
type UserServiceUpdateUserResult ¶
type UserServiceUpdateUserResult struct {
Success *UpdateUserResponse `thrift:"success,0,optional"`
}
func NewUserServiceUpdateUserResult ¶
func NewUserServiceUpdateUserResult() *UserServiceUpdateUserResult
func (*UserServiceUpdateUserResult) GetSuccess ¶
func (p *UserServiceUpdateUserResult) GetSuccess() (v *UpdateUserResponse)
func (*UserServiceUpdateUserResult) InitDefault ¶
func (p *UserServiceUpdateUserResult) InitDefault()
func (*UserServiceUpdateUserResult) IsSetSuccess ¶
func (p *UserServiceUpdateUserResult) IsSetSuccess() bool
func (*UserServiceUpdateUserResult) Read ¶
func (p *UserServiceUpdateUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUpdateUserResult) ReadField0 ¶
func (p *UserServiceUpdateUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceUpdateUserResult) String ¶
func (p *UserServiceUpdateUserResult) String() string
Click to show internal directories.
Click to hide internal directories.