papi

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApnsSender

type ApnsSender interface {
	Sender
}

type Item

type Item struct {
	// contains filtered or unexported fields
}

type MailSender

type MailSender interface {
	Sender
}

MailSender send mail

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

A PriorityQueue implements heap.Interface and holds Items.

func NewPq

func NewPq() *PriorityQueue

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() interface{}

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x interface{})

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

type RamTokenStorage

type RamTokenStorage struct {
	// contains filtered or unexported fields
}

type Sender

type Sender interface {
	Id() string
}

type SmsSender

type SmsSender interface {
	Sender
}

type TokenItem

type TokenItem struct {
	Id                   string
	AccessToken          string
	AccessTokenExpire    time.Time
	RefreshToken         string
	RefreshTokenExpireAt time.Time
}

func (TokenItem) AccessExpired

func (t TokenItem) AccessExpired() bool

func (TokenItem) RefreshExpired

func (t TokenItem) RefreshExpired() bool

type TokenMaintenance

type TokenMaintenance interface {
	RegisterAccessToken(id string, d time.Time)
}

type TokenStorage

type TokenStorage interface {
	RegisterToken(id string, t TokenItem)
	GetToken(id string) (t TokenItem, err error)
	DelToken(id string) (err error)
}

type WxSender

type WxSender interface {
	Sender
}

Jump to

Keyboard shortcuts

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