Documentation ¶
Index ¶
- func CreateAdminUser(username string, db *gorm.DB) (*models.User, error)
- func CreateAgentUser(db *gorm.DB) (*models.User, error)
- func CreateGuestUser(username string, db *gorm.DB) (*models.User, error)
- func CreateOrUpdateEndpoint(db *gorm.DB, ep EndpointInput) (models.Endpoint, error)
- func DeleteSettingByKey(key string, db *gorm.DB) error
- func FirstAdmin(db *gorm.DB) (*models.User, error)
- func GetAgentToken(db *gorm.DB) (string, error)
- func GetSettingByKey(key string, db *gorm.DB) (*string, error)
- func GetUserByToken(token string, db *gorm.DB) (*models.User, error)
- func SetSettingByKey(key string, value string, db *gorm.DB) error
- type EndpointInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateEndpoint ¶ added in v0.1.12
CreateOrUpdateEndpoint creates a new endpoint or updates an existing one with params
Types ¶
Click to show internal directories.
Click to hide internal directories.