Documentation
¶
Index ¶
Constants ¶
View Source
const ( RoleAdmin = "admin" RoleUser = "user" )
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
func StringOrEmpty ¶
func UintOrZero ¶
Types ¶
type ContextHelper ¶
type ContextHelper struct{}
func NewContextHelper ¶
func NewContextHelper() *ContextHelper
func (*ContextHelper) GetJWTClaims ¶
func (*ContextHelper) VerifyOwnership ¶
func (h *ContextHelper) VerifyOwnership(ctx context.Context, resourceOwnerID string) error
type SQLTime ¶
SQLTime is a custom type to handle PostgreSQL's time type
func (SQLTime) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*SQLTime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type TicketType ¶
func TicketUpper ¶
func TicketUpper(s string) TicketType
Click to show internal directories.
Click to hide internal directories.