Documentation ¶
Index ¶
- Variables
- type Adaptors
- type Mobile
- func (n *Mobile) Add(ver *m.Mobile) (idStr string, err error)
- func (n *Mobile) GetByAccessToken(accessToken string) (ver *m.Mobile, err error)
- func (n *Mobile) GetById(verId string) (ver *m.Mobile, err error)
- func (n *Mobile) GetByToken(token string) (ver *m.Mobile, err error)
- func (n *Mobile) List(limit, offset int64) (list []*m.Mobile, total int64, err error)
- func (n *Mobile) Remove(ver *m.Mobile) (err error)
- func (n *Mobile) Update(ver *m.Mobile) (err error)
- type Server
- func (n *Server) Add(ver *m.Server) (idStr string, err error)
- func (n *Server) GetByAccessToken(accessToken string) (ver *m.Server, err error)
- func (n *Server) GetById(verId string) (ver *m.Server, err error)
- func (n *Server) GetByToken(token string) (ver *m.Server, err error)
- func (n *Server) List(limit, offset int64) (list []*m.Server, total int64, err error)
- func (n *Server) Remove(ver *m.Server) (err error)
- func (n *Server) Update(ver *m.Server) (err error)
- type Variable
- func (n *Variable) Add(variables *m.Variable) (err error)
- func (n *Variable) Delete(name string) (err error)
- func (n *Variable) GetAllEnabled() (list []*m.Variable, err error)
- func (n *Variable) GetByName(name string) (variables *m.Variable, err error)
- func (n *Variable) GetHashSalt() (err error)
- func (n *Variable) List(limit, offset int64, orderBy, sort string) (list []*m.Variable, total int64, err error)
- func (n *Variable) Update(variable *m.Variable) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HashSalt string
)
Functions ¶
This section is empty.
Types ¶
type Adaptors ¶
func NewAdaptors ¶
func NewAdaptors(db *gorm.DB, cfg *config.AppConfig, migrations *migrations.Migrations) (adaptors *Adaptors)
type Mobile ¶
type Mobile struct {
// contains filtered or unexported fields
}
func GetMobileAdaptor ¶
func (*Mobile) GetByAccessToken ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func GetServerAdaptor ¶
func (*Server) GetByAccessToken ¶
type Variable ¶
type Variable struct {
// contains filtered or unexported fields
}
func GetVariableAdaptor ¶
func (*Variable) GetHashSalt ¶
Click to show internal directories.
Click to hide internal directories.