routes

package
v0.0.0-...-abc00f4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(w http.ResponseWriter, r *http.Request, db gorm.DB, rdb redis.Client) error

func Login

func Login(w http.ResponseWriter, r *http.Request, db gorm.DB, rdb redis.Client) error

func ProcessBody

func ProcessBody(data io.ReadCloser, to interface{}) error

Types

type CloudUser

type CloudUser struct {
	Id       int64         `json:"id"`
	Projects pq.Int64Array `json:"projects" gorm:"type:int[]"`
	Team     int64         `json:"team"`
}

type GithubResponse

type GithubResponse struct {
	AccessToken string `json:"access_token"`
}

type GithubUser

type GithubUser struct {
	Id int `json:"id"`
}

Jump to

Keyboard shortcuts

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