http

package
v0.0.0-...-117abf3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	*fasthttp.Server
	// contains filtered or unexported fields
}

func New

func New(gCtx global.Context) *HttpServer

func (*HttpServer) AuthCallbackHandler

func (h *HttpServer) AuthCallbackHandler(ctx *fasthttp.RequestCtx)

func (*HttpServer) AuthLoginHandler

func (h *HttpServer) AuthLoginHandler(ctx *fasthttp.RequestCtx)

func (*HttpServer) AuthSuccessHandler

func (h *HttpServer) AuthSuccessHandler(ctx *fasthttp.RequestCtx)

func (*HttpServer) Start

func (h *HttpServer) Start(addr string) error

type OAuthResponse

type OAuthResponse struct {
	AccessToken  string   `json:"access_token"`
	RefreshToken string   `json:"refresh_token"`
	ExpiresIn    int      `json:"expires_in"`
	Scope        []string `json:"scope"`
	TokenType    string   `json:"token_type"`
}

Jump to

Keyboard shortcuts

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