db

package
v0.0.0-...-36de343 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Path string = "/tmp/chudroma.db"

Variables

This section is empty.

Functions

func AddCredentials

func AddCredentials(clientID string, clientSecret string, authToken string, instance string, username string)

func CheckExists

func CheckExists(username string, instance string) bool

func GetToken

func GetToken(username string, instance string) (string, error)

func InitDb

func InitDb()

Types

type AuthTable

type AuthTable struct {
	ID           uint `gorm:"primaryKey"`
	ClientID     string
	ClientSecret string
	AccessToken  string
	Instance     string
	Username     string
}

Jump to

Keyboard shortcuts

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