Documentation ¶
Index ¶
- Constants
- func ConvertType(in interface{}, out interface{}) error
- type Binary
- type Boolean
- type Client
- type DateTime
- type Double
- type Error
- type ErrorResponse
- type Float
- type Guid
- type IEntity
- type IFilter
- type IFunction
- type IPrimaryKey
- type Int
- type Int16
- type Int64
- type Request
- type Stream
- type String
- type Time
- type Where
Constants ¶
const JSTimeFormat = "2006-01-02T15:04:05Z0700"
const OneCTimeFormat = "2006-01-02T15:04:05"
Variables ¶
This section is empty.
Functions ¶
func ConvertType ¶
func ConvertType(in interface{}, out interface{}) error
Type converter for any types through conversion to JSON and back
Types ¶
type Binary ¶
type Binary string
Type for Edm.Binary
func (Binary) AsParameter ¶
A custom marshaller to uri query format
func (Binary) ImplementsGraphQLType ¶
Maps this Go type to the graphql scalar type in the schema.
func (*Binary) UnmarshalGraphQL ¶
A custom graphql unmarshaller for Binary type
type Boolean ¶
type Boolean bool
Type for Edm.Boolean
func (Boolean) AsParameter ¶
A custom marshaller to uri query format for Boolean type
func (Boolean) ImplementsGraphQLType ¶
Maps Boolean to the graphql scalar type in the schema.
func (Boolean) MarshalJSON ¶
A custom json/graphql marshaller for Boolean type
func (*Boolean) UnmarshalGraphQL ¶
A custom graphql unmarshaller for Boolean type
func (*Boolean) UnmarshalJSON ¶
A custom json unmarshaller for Boolean type
type Client ¶
type Client struct { PoolSize int // contains filtered or unexported fields }
func NewClient ¶
func NewClient(username, password, endpoint string, poolSize, queueSize int, transport http.RoundTripper) *Client
Return initialized odata client
func (*Client) ExecuteEntityMethod ¶
func (c *Client) ExecuteEntityMethod(key IPrimaryKey, function IFunction) ([]byte, error)
Execute entity's method and return its output in json
func (*Client) GetEntityNavigaion ¶
func (c *Client) GetEntityNavigaion(key IPrimaryKey, property string) ([]byte, error)
Returns json representation of entity's NavigationProperty
type DateTime ¶
Type for Edm.DateTime
func (DateTime) AsParameter ¶
A custom marshaller to uri query format for DateTime type
func (DateTime) ImplementsGraphQLType ¶
Maps DateTime to the graphql scalar type in the schema.
func (DateTime) MarshalJSON ¶
A custom json/graphql marshaller for DateTime type
func (*DateTime) UnmarshalGraphQL ¶
A custom graphql unmarshaler for DateTime type
func (*DateTime) UnmarshalJSON ¶
A custom json unmarshaller for DateTime type
type Double ¶
type Double float64
Type for Edm.Double
func (Double) AsParameter ¶
A custom marshaller to uri query format for Double type
func (Double) ImplementsGraphQLType ¶
Maps Double to the graphql scalar type in the schema.
func (Double) MarshalJSON ¶
A custom json/graphql marshaller for Double type
func (*Double) UnmarshalGraphQL ¶
A custom graphql unmarshaler for Double type
func (*Double) UnmarshalJSON ¶
A custom json unmarshaller for Double type
type Error ¶
type Error struct { Code string `json:"code"` Message struct { Lang string `json:"lang"` Value string `json:"value"` } `json:"message"` HttpCode int `json:"http_code"` }
func (Error) Extensions ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error `json:"odata.error"`
}
type Float ¶
type Float float64
Type for Edm.Float
func (Float) AsParameter ¶
A custom marshaller to uri query format for Float type
func (Float) ImplementsGraphQLType ¶
Maps Float to the graphql scalar type in the schema.
func (Float) MarshalJSON ¶
A custom json/graphql marshaller for Float type
func (*Float) UnmarshalGraphQL ¶
A custom graphql unmarshaler for Float type
func (*Float) UnmarshalJSON ¶
A custom json unmarshaller for Float type
type Guid ¶
type Guid string
Type for Edm.Guid
func (Guid) AsParameter ¶
A custom marshaller to uri query format for Guid type
func (Guid) ImplementsGraphQLType ¶
Maps Guid to the graphql scalar type in the schema.
func (Guid) MarshalJSON ¶
A custom json/graphql marshaller for Guid type
func (*Guid) UnmarshalGraphQL ¶
A custom unmarshaler for Guid type
func (*Guid) UnmarshalJSON ¶
A custom json unmarshaller for Guid type
type IPrimaryKey ¶
Interface for odata PrimaryKey type
type Int ¶
type Int int
Type for Edm.Int
func (Int) AsParameter ¶
A custom marshaller to uri query format for Int type
func (Int) ImplementsGraphQLType ¶
Maps Int to the graphql scalar type in the schema.
func (Int) MarshalJSON ¶
A custom json/graphql marshaller for Int type
func (*Int) UnmarshalGraphQL ¶
A custom unmarshaler for Int type
func (*Int) UnmarshalJSON ¶
A custom json unmarshaller for Int type
type Int16 ¶
type Int16 int16
Type for Edm.Int16
func (Int16) AsParameter ¶
A custom marshaller to uri query format for Int16 type
func (Int16) ImplementsGraphQLType ¶
Maps Int to the graphql scalar type in the schema.
func (Int16) MarshalJSON ¶
A custom json/graphql marshaller for Int16 type
func (*Int16) UnmarshalGraphQL ¶
A custom unmarshaler for Int16 type
func (*Int16) UnmarshalJSON ¶
A custom json unmarshaller for Int16 type
type Int64 ¶
type Int64 int64
Type for Edm.Int64
func (Int64) AsParameter ¶
A custom marshaller to uri query format for Int64 type
func (Int64) ImplementsGraphQLType ¶
Maps Int64 to the graphql scalar type in the schema.
func (Int64) MarshalJSON ¶
A custom json/graphql marshaller for Int64 type
func (*Int64) UnmarshalGraphQL ¶
A custom unmarshaler for Int64 type
func (*Int64) UnmarshalJSON ¶
A custom json unmarshaller for Int64 type
type Stream ¶
type Stream string
Type for Edm.Stream
func (Stream) AsParameter ¶
A custom marshaller to uri query format
func (Stream) ImplementsGraphQLType ¶
Maps this Go type to the graphql scalar type in the schema.
func (*Stream) UnmarshalGraphQL ¶
A custom graphql unmarshaller for Binary type
type String ¶
type String string
Type for Edm.String
func (String) AsParameter ¶
A custom marshaller to uri query format for String type
func (String) ImplementsGraphQLType ¶
Maps String to the graphql scalar type in the schema.
func (String) MarshalJSON ¶
A custom json/graphql marshaller for String type
func (*String) UnmarshalGraphQL ¶
A custom unmarshaler for String type
func (*String) UnmarshalJSON ¶
A custom json unmarshaller for String type
type Time ¶
Type for Edm.Time
func (Time) AsParameter ¶
A custom marshaller to uri query format for Time type
func (Time) ImplementsGraphQLType ¶
Maps Time to the graphql scalar type in the schema.
func (Time) MarshalJSON ¶
A custom json/graphql marshaller for Time type
func (*Time) UnmarshalGraphQL ¶
A custom unmarshaler for Time type
func (*Time) UnmarshalJSON ¶
A custom json unmarshaller for Time type