Documentation ¶
Index ¶
- Constants
- Variables
- type Gender
- type User
- type UserProvider
- func (u *UserProvider) GetErr(ctx context.Context, req []interface{}, rsp *User) error
- func (s *UserProvider) GetGender(i int32) (hessian.JavaEnum, error)
- func (u *UserProvider) GetUser(ctx context.Context, req []interface{}, rsp *User) error
- func (u *UserProvider) GetUser0(id string, name string) (User, error)
- func (u *UserProvider) GetUser2(ctx context.Context, req []interface{}, rsp *User) error
- func (u *UserProvider) GetUser3() error
- func (u *UserProvider) GetUsers(req []interface{}) ([]interface{}, error)
- func (s *UserProvider) MethodMapper() map[string]string
- func (u *UserProvider) Reference() string
Constants ¶
View Source
const ( MAN hessian.JavaEnum = iota WOMAN )
Variables ¶
View Source
var ( DefaultUser = User{ ID: "0", Name: "Alex Stocks", Age: 31, Sex: Gender(MAN), } )
Functions ¶
This section is empty.
Types ¶
type Gender ¶
func (Gender) JavaClassName ¶
type User ¶
type User struct { // !!! Cannot define lowercase names of variable ID string Name string Age int32 Time time.Time Sex Gender // notice: java enum Object <--> go string }
func (User) JavaClassName ¶
type UserProvider ¶
type UserProvider struct { }
func (*UserProvider) GetErr ¶
func (u *UserProvider) GetErr(ctx context.Context, req []interface{}, rsp *User) error
func (*UserProvider) GetGender ¶
func (s *UserProvider) GetGender(i int32) (hessian.JavaEnum, error)
func (*UserProvider) GetUser ¶
func (u *UserProvider) GetUser(ctx context.Context, req []interface{}, rsp *User) error
func (*UserProvider) GetUser0 ¶
func (u *UserProvider) GetUser0(id string, name string) (User, error)
func (*UserProvider) GetUser2 ¶
func (u *UserProvider) GetUser2(ctx context.Context, req []interface{}, rsp *User) error
func (*UserProvider) GetUser3 ¶
func (u *UserProvider) GetUser3() error
func (*UserProvider) GetUsers ¶
func (u *UserProvider) GetUsers(req []interface{}) ([]interface{}, error)
func (*UserProvider) MethodMapper ¶
func (s *UserProvider) MethodMapper() map[string]string
func (*UserProvider) Reference ¶
func (u *UserProvider) Reference() string
Click to show internal directories.
Click to hide internal directories.