Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
Role string
}
func NewAdmin ¶
func NewAdmin(config AdminConfig) (model *Admin, err error)
type AdminConfig ¶
type AdminConfig interface {
AdminRole() string
}
type User ¶
type User struct {
Name string
}
func NewUser ¶
func NewUser(config UserConfig) (model *User, err error)
type UserConfig ¶
type UserConfig interface {
UserName() string
}
Click to show internal directories.
Click to hide internal directories.