Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FullServiceDefinition ¶
type FullServiceDefinition struct { ServiceDefinition Params map[string]string }
FullServiceDefinition is the describer of service definition with parameters
type MethodDefinition ¶
type MethodDefinition struct { Name string ParameterTypes []string ReturnType string Parameters []TypeDefinition }
MethodDefinition is the describer of method definition
type ServiceDefiner ¶
ServiceDefiner is a interface of service's definition
type ServiceDefinition ¶
type ServiceDefinition struct { CanonicalName string CodeSource string Methods []MethodDefinition Types []TypeDefinition }
ServiceDefinition is the describer of service definition
func BuildServiceDefinition ¶
func BuildServiceDefinition(service common.Service, url *common.URL) *ServiceDefinition
BuildServiceDefinition can build service definition which will be used to describe a service
func (*ServiceDefinition) String ¶
func (def *ServiceDefinition) String() string
String will iterate all methods and parameters and convert them to json string
func (*ServiceDefinition) ToBytes ¶
func (def *ServiceDefinition) ToBytes() ([]byte, error)
ToBytes convert ServiceDefinition to json string
type TypeDefinition ¶
type TypeDefinition struct { ID string Type string Items []TypeDefinition Enums []string Properties map[string]TypeDefinition TypeBuilderName string }
TypeDefinition is the describer of type definition
type User ¶
func (User) JavaClassName ¶
type UserProvider ¶
type UserProvider struct{}
func (*UserProvider) GetUser ¶
func (u *UserProvider) GetUser(ctx context.Context, req []interface{}) (*User, error)
func (*UserProvider) Reference ¶
func (u *UserProvider) Reference() string
Click to show internal directories.
Click to hide internal directories.