Documentation
¶
Index ¶
- type API
- func (api *API) Call(service, function string, params utils.M, timeout int) (*model.Response, error)
- func (api *API) Filestore() *filestore.Filestore
- func (api *API) Mongo() *mgo.Mongo
- func (api *API) MySQL() *sql.SQL
- func (api *API) Postgres() *sql.SQL
- func (api *API) Service(serviceName string) *service.Service
- func (api *API) SetProjectID(project string)
- func (api *API) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the main API object to communicate with space cloud
func (*API) Call ¶
func (api *API) Call(service, function string, params utils.M, timeout int) (*model.Response, error)
Call invokes the specified function on the backend
func (*API) SetProjectID ¶
SetProjectID sets the project id to be used by the API
Click to show internal directories.
Click to hide internal directories.