Documentation ¶
Index ¶
- Constants
- Variables
- type APIKeyFilter
- type Controller
- func (c *Controller) AuthorizeUser(tokenString string) (*models.User, error)
- func (c *Controller) Close()
- func (c *Controller) CreateAPIKey(apiKey *models.APIKey) error
- func (c *Controller) CreateUser(user *models.User) error
- func (c *Controller) CreateVehicle(vehicle *models.Vehicle) error
- func (c *Controller) DeleteAPIKey(apiKeyUUID string) error
- func (c *Controller) DeleteUser(userUUID string) error
- func (c *Controller) DeleteVehicle(vehicleUUID string) error
- func (c *Controller) Login(credentials *models.User) (string, error)
- func (c *Controller) QueryAPIKeys(filter *APIKeyFilter) (*Result[*models.APIKey], error)
- func (c *Controller) QueryUsers(filter *UserFilter) (*Result[*models.User], error)
- func (c *Controller) QueryVehicles(filter *VehicleFilter) (*Result[*models.Vehicle], error)
- func (c *Controller) UpdateUser(user *models.User) error
- func (c *Controller) UpdateVehicle(vehicle *models.Vehicle) error
- func (c *Controller) UserValid(user *models.User) (*models.User, error)
- type Result
- type UserFilter
- type VehicleFilter
Constants ¶
View Source
const DefaultPageSize = 20
Variables ¶
Functions ¶
This section is empty.
Types ¶
type APIKeyFilter ¶
type Controller ¶
func NewTest ¶
func NewTest() *Controller
func (*Controller) AuthorizeUser ¶
func (c *Controller) AuthorizeUser(tokenString string) (*models.User, error)
func (*Controller) Close ¶
func (c *Controller) Close()
func (*Controller) CreateAPIKey ¶
func (c *Controller) CreateAPIKey(apiKey *models.APIKey) error
func (*Controller) CreateUser ¶
func (c *Controller) CreateUser(user *models.User) error
func (*Controller) CreateVehicle ¶
func (c *Controller) CreateVehicle(vehicle *models.Vehicle) error
func (*Controller) DeleteAPIKey ¶
func (c *Controller) DeleteAPIKey(apiKeyUUID string) error
func (*Controller) DeleteUser ¶
func (c *Controller) DeleteUser(userUUID string) error
func (*Controller) DeleteVehicle ¶
func (c *Controller) DeleteVehicle(vehicleUUID string) error
func (*Controller) QueryAPIKeys ¶
func (c *Controller) QueryAPIKeys(filter *APIKeyFilter) (*Result[*models.APIKey], error)
func (*Controller) QueryUsers ¶
func (c *Controller) QueryUsers(filter *UserFilter) (*Result[*models.User], error)
func (*Controller) QueryVehicles ¶
func (c *Controller) QueryVehicles(filter *VehicleFilter) (*Result[*models.Vehicle], error)
func (*Controller) UpdateUser ¶
func (c *Controller) UpdateUser(user *models.User) error
func (*Controller) UpdateVehicle ¶
func (c *Controller) UpdateVehicle(vehicle *models.Vehicle) error
type UserFilter ¶
Click to show internal directories.
Click to hide internal directories.