api

package
v0.0.0-...-8aa8f09 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONErrorResponse

func JSONErrorResponse(w http.ResponseWriter, code int, message string)

func JSONResponse

func JSONResponse(w http.ResponseWriter, code int, payload interface{})

func TextResponse

func TextResponse(w http.ResponseWriter, code int, text string)

func ValidateEventType

func ValidateEventType(value string) error

Types

type SessionStore

type SessionStore struct {
	sessions.Store
}

func (*SessionStore) GetStorageToken

func (s *SessionStore) GetStorageToken(r *http.Request) (string, error)

func (*SessionStore) GetUserInfo

func (s *SessionStore) GetUserInfo(r *http.Request) (*goth.User, error)

func (*SessionStore) SetStorageToken

func (s *SessionStore) SetStorageToken(r *http.Request, w http.ResponseWriter, token string)

func (*SessionStore) SetUserInfo

func (s *SessionStore) SetUserInfo(r *http.Request, w http.ResponseWriter, user goth.User)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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