commomTypes

package
v0.0.0-...-6c43dd7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KQueueTickerPing = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStatus

type KeyStatus struct {
	IdSender string
	Key      string
	Value    Status
}

func (*KeyStatus) MarshalMsgPack

func (e *KeyStatus) MarshalMsgPack() (msgPack []byte, err error)

func (*KeyStatus) UnmarshalMsgPack

func (e *KeyStatus) UnmarshalMsgPack(data []byte) (err error)

type QueueStatus

type QueueStatus int
const (
	KQueueDisconnected QueueStatus = iota
	KQueueConnected
	KQueueClosed
	KQueueReconnecting
	KQueueConnecting
)

type Status

type Status struct {
	UserId         string `json:"user_id"`
	Status         string `json:"status"`
	Manual         bool   `json:"manual"`
	LastActivityAt int64  `json:"last_activity_at"`
	ActiveChannel  string `json:"-" db:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL