odata

package module
v0.0.0-...-02cbf39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-odata

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetASingleEntityFromACollection

func GetASingleEntityFromACollection(request *restful.Request, response *restful.Response)

func ReadAnEntitySet

func ReadAnEntitySet(request *restful.Request, response *restful.Response)

func ReadAnEntitySetV4

func ReadAnEntitySetV4(request *restful.Request) (r *v4.ResponseEntrySet)

func ReadTheServiceRoot

func ReadTheServiceRoot(request *restful.Request, response *restful.Response)

func ReadTheServiceRootV4

func ReadTheServiceRootV4() (r *v4.ResponseResourceList)

Types

type AddressInfo

type AddressInfo struct {
	Address string `json:"Address"`
	City    City   `json:"City"`
}

type City

type City struct {
	CountryRegion string `json:"CountryRegion"`
	Name          string `json:"Name"`
	Region        string `json:"Region"`
}

type Man

type Man struct {
	v4.EntryAnnotation

	UserName    string      `json:"UserName"`
	FirstName   string      `json:"FirstName"`
	LastName    string      `json:"LastName"`
	Emails      []string    `json:"Emails"`
	AddressInfo AddressInfo `json:"AddressInfo"`
	Gender      string      `json:"Gender"`
}

func GetASingleEntityFromACollectionV4

func GetASingleEntityFromACollectionV4(id string, request *restful.Request) (r *Man)

type Request

type Request struct {
	Version    string
	MaxVersion string
}

func ParseRequest

func ParseRequest(request *http.Request) (oRequest *Request, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL