Documentation ¶
Index ¶
- func UserStatusToAPI(status UserStatus) user_status_pb.StatusKind
- type AcknowledgeKind
- type Event
- type Origin
- type Session
- type Token
- type UserStatus
- func (i UserStatus) IsAdmin() bool
- func (i UserStatus) IsDefault() bool
- func (i UserStatus) IsFreeze() bool
- func (i UserStatus) IsJedi() bool
- func (i UserStatus) IsManager() bool
- func (i UserStatus) IsPremium() bool
- func (i UserStatus) IsSpecialist() bool
- func (i UserStatus) IsSupport() bool
- func (i UserStatus) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserStatusToAPI ¶
func UserStatusToAPI(status UserStatus) user_status_pb.StatusKind
UserStatusToAPI converts user status from protobuf.
Types ¶
type AcknowledgeKind ¶
type AcknowledgeKind uint8
AcknowledgeKind represents kind of acknowledgment.
const ( AcknowledgeKindAck AcknowledgeKind AcknowledgeKindNack )
func (AcknowledgeKind) String ¶
func (i AcknowledgeKind) String() string
type Event ¶
type Event[T any] struct { // contains filtered or unexported fields }
Event contains event message information.
type Session ¶
type Session struct { ID uuid.UUID UserID uuid.UUID Status UserStatus }
Session contains main session info.
type UserStatus ¶
type UserStatus uint8
UserStatus user status in service.
const ( UserStatusFreeze UserStatus UserStatusDefault UserStatusPremium UserStatusSupport UserStatusAdmin UserStatusJedi )
func UserStatusFromAPI ¶
func UserStatusFromAPI(kind user_status_pb.StatusKind) UserStatus
UserStatusFromAPI converts user status from protobuf.
func (UserStatus) IsAdmin ¶
func (i UserStatus) IsAdmin() bool
func (UserStatus) IsDefault ¶
func (i UserStatus) IsDefault() bool
func (UserStatus) IsFreeze ¶
func (i UserStatus) IsFreeze() bool
func (UserStatus) IsJedi ¶
func (i UserStatus) IsJedi() bool
func (UserStatus) IsManager ¶
func (i UserStatus) IsManager() bool
func (UserStatus) IsPremium ¶
func (i UserStatus) IsPremium() bool
func (UserStatus) IsSpecialist ¶
func (i UserStatus) IsSpecialist() bool
func (UserStatus) IsSupport ¶
func (i UserStatus) IsSupport() bool
func (UserStatus) String ¶
func (i UserStatus) String() string
Click to show internal directories.
Click to hide internal directories.