Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagePublishedData ¶
type MessagePublishedData struct {
Message PubSubMessage
}
MessagePublishedData contains the full Pub/Sub message See the documentation for more details: https://cloud.google.com/eventarc/docs/cloudevents#pubsub
type PubSubMessage ¶
type PubSubMessage struct {
Data []byte `json:"data"`
}
PubSubMessage is the payload of a Pub/Sub event. See the documentation for more details: https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage
type UserClaims ¶ added in v1.1.3
type UserClaims struct { ID string `json:"id"` Name string `json:"name"` LastName string `json:"lastName"` ProfilePicture string `json:"profilePicture"` Email string `json:"email"` Roles []enums.Role `json:"roles"` IsConfirmed bool `json:"isConfirmed"` IsBlocked bool `json:"isBlocked"` jwt.StandardClaims }
UserClaims represents the claims of a user in the system.
func (*UserClaims) IsAdmin ¶ added in v1.1.3
func (uc *UserClaims) IsAdmin() bool
IsAdmin checks if the user has the admin role.
func (*UserClaims) IsAuthor ¶ added in v1.1.3
func (uc *UserClaims) IsAuthor() bool
IsAuthor checks if the user has the author role.
func (*UserClaims) IsEditor ¶ added in v1.1.3
func (uc *UserClaims) IsEditor() bool
IsEditor checks if the user has the editor role.
func (*UserClaims) IsUser ¶ added in v1.1.3
func (uc *UserClaims) IsUser() bool
IsUser checks if the user has the user role.
Click to show internal directories.
Click to hide internal directories.