Mike Schwörer 1d2f4f70c8
Some checks failed
Build Docker and Deploy / Build Docker Container (push) Has been cancelled
Build Docker and Deploy / Run Unit-Tests (push) Has been cancelled
Build Docker and Deploy / Deploy to Server (push) Has been cancelled
Update goext|gognecht dependencies to new module-root 'git.blackforestbytes'
2025-05-03 16:59:57 +02:00

26 lines
645 B
Go

package models
import (
"git.blackforestbytes.com/BlackForestBytes/goext/rext"
)
//go:generate go run ../_gen/id-generate.go -- ids_gen.go
type EntityID interface {
String() string
Valid() error
Prefix() string
Raw() string
CheckString() string
Regex() rext.Regex
}
type UserID string //@csid:type [USR]
type ChannelID string //@csid:type [CHA]
type DeliveryID string //@csid:type [DEL]
type MessageID string //@csid:type [MSG]
type SubscriptionID string //@csid:type [SUB]
type ClientID string //@csid:type [CLN]
type RequestID string //@csid:type [REQ]
type KeyTokenID string //@csid:type [TOK]