api

package
v0.0.0-...-09065da Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

todo: #20 move this to api package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDb

func GetDb() *gorm.DB

GetDb returns an initalized connection string based on the standardized envioronment configuration (hosted or local)

func RandState

func RandState() (string, error)

RandState is a stnadardized randomization and initialization function used to setup a new API module

Types

type ApiClient

type ApiClient interface {
	GetAuthCodeURL() string
	GetAccessToken(code string) (token *oauth2.Token, err error)
	ProcessRequest(payload url.Values, v interface{}) error
}

type Client

type Client struct {
	OAuth2Config *oauth2.Config
	Timeout      time.Duration
}

type Export

type Export interface {
	Export() (interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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