Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRPCUser ¶
type JsonRPCUser struct {
ID string `json:"id"`
Name string `json:"name"`
Age int64 `json:"age"`
Time int64 `json:"time"`
Sex string `json:"sex"`
}
func (JsonRPCUser) String ¶
func (u JsonRPCUser) String() string
type UserProvider ¶
type UserProvider struct {
GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
GetUser func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser0 func(id string, name string) (*JsonRPCUser, error)
GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
GetUser3 func() error
Echo func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}
type UserProvider1 ¶
type UserProvider1 struct {
GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
GetUser func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser0 func(id string, name string) (*JsonRPCUser, error)
GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
GetUser3 func() error
Echo func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}
type UserProvider2 ¶
type UserProvider2 struct {
GetUsers func(ids []interface{}) ([]*JsonRPCUser, error)
GetUser func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser0 func(id string, name string) (*JsonRPCUser, error)
GetUser1 func(ctx context.Context, id string) (*JsonRPCUser, error)
GetUser2 func(ctx context.Context, id string) (*JsonRPCUser, error) `dubbo:"getUser"`
GetUser3 func() error
Echo func(ctx context.Context, req string) (string, error) // Echo represent EchoFilter will be used
}
Click to show internal directories.
Click to hide internal directories.