business

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

* @Author: SpenserCai * @Date: 2023-09-30 12:53:43 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-03 16:45:54 * @Description: file content

* @Author: SpenserCai * @Date: 2023-09-29 19:24:52 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-02 21:08:46 * @Description: file content

* @Author: SpenserCai * @Date: 2023-09-29 21:25:55 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-30 21:57:18 * @Description: file content

* @Author: SpenserCai * @Date: 2023-10-04 20:26:32 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-06 17:21:04 * @Description: file content

* @Author: SpenserCai * @Date: 2023-09-29 21:26:43 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-10-04 00:12:56 * @Description: file content

* @Author: SpenserCai * @Date: 2023-09-29 21:26:59 * @version: * @LastEditors: SpenserCai * @LastEditTime: 2023-09-30 00:35:03 * @Description: file content

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

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

func (AuthResponse) WriteResponse

func (ap AuthResponse) WriteResponse(rw http.ResponseWriter, p runtime.Producer)

type BusinessBase

type BusinessBase struct{}

func (BusinessBase) GenRandomState

func (b BusinessBase) GenRandomState() []string

func (BusinessBase) GetDiscordAuthUrl

func (b BusinessBase) GetDiscordAuthUrl() string

func (BusinessBase) GetDiscordOauth2Config

func (b BusinessBase) GetDiscordOauth2Config() oauth2.Config

func (BusinessBase) GetUserInfo

func (b BusinessBase) GetUserInfo(token string) (*DbotUser.UserInfo, error)

func (BusinessBase) SetAuthHandler

func (b BusinessBase) SetAuthHandler()

func (BusinessBase) SetLoginHandler

func (b BusinessBase) SetLoginHandler()

func (BusinessBase) SetUserHistoryHandler

func (b BusinessBase) SetUserHistoryHandler()

func (BusinessBase) SetUserInfoHandler

func (b BusinessBase) SetUserInfoHandler()

func (BusinessBase) SetUserListHandler

func (b BusinessBase) SetUserListHandler()

Jump to

Keyboard shortcuts

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