client

package
v0.0.0-...-fb0b0ba Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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