Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterController ¶
func RegisterController(app *iris.Application, path string, c interface{})
Types ¶
type Controller ¶
type User ¶
type User struct { Controller // All fields that are tagged with iris:"persistence"` // are being persistence and kept between the different requests, // meaning that these data will not be reset-ed on each new request, // they will be the same for all requests. CreatedAt time.Time `iris:"persistence"` Title string `iris:"persistence"` DB *persistence.Database `iris:"persistence"` }
User is our user example controller.
func NewUserController ¶
func NewUserController(db *persistence.Database) *User
Click to show internal directories.
Click to hide internal directories.