app

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ToutiaoAppTokenURL          string
	ToutiaoAppConfigLifeSpan    gokits.Duration
	ToutiaoAppTokenLifeSpan     gokits.Duration
	ToutiaoAppTokenTempLifeSpan gokits.Duration
}

type QueryToutiaoAppToken

type QueryToutiaoAppToken struct {
	ToutiaoAppToken
	Updated    string
	ExpireTime int64
}

func (*QueryToutiaoAppToken) GetExpireTime

func (q *QueryToutiaoAppToken) GetExpireTime() int64

func (*QueryToutiaoAppToken) GetUpdated

func (q *QueryToutiaoAppToken) GetUpdated() string

type Response

type Response struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type ToutiaoAppConfig

type ToutiaoAppConfig struct {
	AppId     string
	AppSecret string
}

type ToutiaoAppToken

type ToutiaoAppToken struct {
	AppId       string `json:"appId"`
	AccessToken string `json:"token"`
}

Jump to

Keyboard shortcuts

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