api

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Wechat_UA = "MicroMessenger/"

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() map[string]string

func NewApp

func NewApp() *gear.App

NewApp ...

Types

type APIs

type APIs struct {
	Healthz *Healthz
	AuthN   *AuthN
	Session *Session
}

APIs ..

type AuthN

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

func NewAuth

func NewAuth(blls *bll.Blls, cfg *conf.ConfigTpl) *AuthN

func (*AuthN) Callback

func (a *AuthN) Callback(ctx *gear.Context) error

Get ..

func (*AuthN) Login

func (a *AuthN) Login(ctx *gear.Context) error

func (*AuthN) SyncSession added in v1.1.0

func (a *AuthN) SyncSession(ctx *gear.Context) error

type Healthz

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

Healthz ..

func (*Healthz) Get

func (a *Healthz) Get(ctx *gear.Context) error

Get ..

type Session

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

func NewSession

func NewSession(blls *bll.Blls, cfg *conf.ConfigTpl) *Session

func (*Session) AccessToken

func (a *Session) AccessToken(ctx *gear.Context) error

func (*Session) Logout added in v0.5.0

func (a *Session) Logout(ctx *gear.Context) error

func (*Session) UserInfo

func (a *Session) UserInfo(ctx *gear.Context) error

func (*Session) Verify

func (a *Session) Verify(ctx *gear.Context) error

Jump to

Keyboard shortcuts

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