controller

package
v0.0.0-...-57a0f16 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompanyController

type CompanyController struct {
	// contains filtered or unexported fields
}

func NewCompanyController

func NewCompanyController(companyRepo model.CompanyRepo) CompanyController

func (*CompanyController) GetCompanies

func (coc *CompanyController) GetCompanies(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*CompanyController) GetCompaniesWithUsers

func (coc *CompanyController) GetCompaniesWithUsers(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func (*CompanyController) GetCompany

func (coc *CompanyController) GetCompany(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type Paginate

type Paginate struct {
	PageSize int
	Page     int
}

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func NewUserController

func NewUserController(userRepo model.UserRepo) UserController

func (*UserController) AddUser

Jump to

Keyboard shortcuts

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