Documentation ¶
Index ¶
- Constants
- type ClientController
- func (cc ClientController) ClientAuthorization(s *mgo.Session, dbName, appId, appKey string) (bool, error)
- func (cc ClientController) CreateNewClient(c echo.Context) error
- func (cc ClientController) DeleteClientById(c echo.Context) error
- func (cc ClientController) GetClientById(c echo.Context) error
- func (cc ClientController) GetClients(c echo.Context) error
- func (cc ClientController) UpdateClientById(c echo.Context) error
Constants ¶
View Source
const ( CLIENT_COLLECTION_NAME = "clients" WEB_PLATFORM_TYPE = "web" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientController ¶
type ClientController struct { Session *mgo.Session DBName string }
func NewClientController ¶
func NewClientController(s *mgo.Session, dbName string) *ClientController
func (ClientController) ClientAuthorization ¶
func (cc ClientController) ClientAuthorization(s *mgo.Session, dbName, appId, appKey string) (bool, error)
func (ClientController) CreateNewClient ¶
func (cc ClientController) CreateNewClient(c echo.Context) error
func (ClientController) DeleteClientById ¶
func (cc ClientController) DeleteClientById(c echo.Context) error
func (ClientController) GetClientById ¶
func (cc ClientController) GetClientById(c echo.Context) error
func (ClientController) GetClients ¶
func (cc ClientController) GetClients(c echo.Context) error
func (ClientController) UpdateClientById ¶
func (cc ClientController) UpdateClientById(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.