session

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Getter

type Getter interface {
	GetToken() *token.Token
}

Getter 获取token

type Session

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

Session 请求上下文信息

func NewSession

func NewSession() *Session

NewSession todo

func (*Session) GetAccount

func (s *Session) GetAccount() string

GetAccount todo

func (*Session) GetToken

func (s *Session) GetToken() *token.Token

GetToken 获取token

func (*Session) WithToken

func (s *Session) WithToken(tk *token.Token)

WithToken 携带token

func (*Session) WithTokenGetter

func (s *Session) WithTokenGetter(gt Getter)

WithTokenGetter geter

Jump to

Keyboard shortcuts

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