Documentation ¶
Index ¶
- Variables
- func CarEnter(ctx context.Context, log entity.Log) (int, error)
- func CarExit(ctx context.Context, pId int, carTag string) error
- func CreateParking(ctx context.Context, parking entity.Parking) (int, uuid.UUID, error)
- func CreateParkingAdmin(ctx context.Context, ParkingAdmin entity.ParkingAdmin) (int, uuid.UUID, error)
- func CreateSystemAdmin(ctx context.Context, SystemAdmin entity.SystemAdmin) (int, error)
- func CreateWhitelist(ctx context.Context, Whitelist entity.Whitelist, adminCode uuid.UUID) (int, error)
- func CreateZone(ctx context.Context, zone entity.Zone) (int, error)
- func DeleteParking(ctx context.Context, id int) error
- func DeleteParkingAdmin(ctx context.Context, id int) error
- func DeleteSystemAdmin(ctx context.Context, id int) error
- func DeleteWhitelist(ctx context.Context, req entity.WhitelistDeleteReq) error
- func DeleteZone(ctx context.Context, id int, adminUUID uuid.UUID) error
- func EnterZone(ctx context.Context, zoneID int) error
- func ExitZone(ctx context.Context, zoneID int) error
- func GetParking(ctx context.Context, id int) (entity.Parking, int, error)
- func GetParkingAdmin(ctx context.Context, id int) (entity.ParkingAdmin, error)
- func GetParkingAdmins(ctx context.Context) ([]entity.ParkingAdmin, error)
- func GetParkingUUID(ctx context.Context, adminId uuid.UUID) (uuid.UUID, error)
- func GetParkings(ctx context.Context) ([]entity.Parking, error)
- func GetSystemAdmin(ctx context.Context, id int) (entity.SystemAdmin, error)
- func GetSystemAdmins(ctx context.Context) ([]entity.SystemAdmin, error)
- func GetWhitelists(ctx context.Context, req entity.WhitelistGetReq) ([]entity.Whitelist, error)
- func GetZones(ctx context.Context, adminUUID uuid.UUID) ([]entity.Zone, error)
- func UpdateParking(ctx context.Context, rule entity.Parking) error
- func UpdateParkingAdmin(ctx context.Context, rule entity.ParkingAdmin) error
- func UpdateSystemAdmin(ctx context.Context, rule entity.SystemAdmin) error
- func UpdateZone(ctx context.Context, zone entity.Zone) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("entity does not exist") ErrInternalServer = errors.New("internal server error") ErrDuplicateEntity = errors.New("duplicate entity") ErrNoAccess = errors.New("no access") ErrInvalidCarTag = errors.New("invalid car tag") ErrParkingNotFound = errors.New("parking not found") )
Functions ¶
func CreateParking ¶
func CreateParkingAdmin ¶
func CreateSystemAdmin ¶
func CreateWhitelist ¶
func DeleteWhitelist ¶
func DeleteWhitelist(ctx context.Context, req entity.WhitelistDeleteReq) error
func GetParkingAdmin ¶
func GetParkingAdmins ¶
func GetParkingAdmins(ctx context.Context) ([]entity.ParkingAdmin, error)
func GetParkingUUID ¶
func GetSystemAdmin ¶
func GetSystemAdmins ¶
func GetSystemAdmins(ctx context.Context) ([]entity.SystemAdmin, error)
func GetWhitelists ¶
func UpdateParkingAdmin ¶
func UpdateParkingAdmin(ctx context.Context, rule entity.ParkingAdmin) error
func UpdateSystemAdmin ¶
func UpdateSystemAdmin(ctx context.Context, rule entity.SystemAdmin) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.