Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONEncode ¶
func JSONEncode(w io.WriteCloser, v interface{}) error
Types ¶
type AtomicLock ¶
type AtomicLock int32
func (*AtomicLock) AcquireLock ¶
func (l *AtomicLock) AcquireLock() bool
func (*AtomicLock) IsLocked ¶
func (l *AtomicLock) IsLocked() bool
func (*AtomicLock) Unlock ¶
func (l *AtomicLock) Unlock()
type Queue ¶
func NewThreadSafeQueue ¶
func NewThreadSafeQueue() Queue
func NewThreadUnsafeQueue ¶
func NewThreadUnsafeQueue() Queue
type Snowflake ¶
type Snowflake = snowflake.Snowflake
func GetSnowflake ¶
GetSnowflake see snowflake.GetSnowflake
func ParseSnowflakeString ¶
ParseSnowflakeString see snowflake.ParseSnowflakeString
type TicketQueue ¶
type TicketQueue struct {
// contains filtered or unexported fields
}
func (*TicketQueue) Delete ¶
func (q *TicketQueue) Delete(ticket Ticket)
func (*TicketQueue) NewTicket ¶
func (q *TicketQueue) NewTicket() (ticket Ticket)
Click to show internal directories.
Click to hide internal directories.