swifty

package
v0.0.0-...-ac9ea8b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MariaConn

func MariaConn(mwn string) (*sql.DB, error)

func MongoDatabase

func MongoDatabase(mwn string) (*mgo.Database, error)

func S3Bucket

func S3Bucket(bname string) (*s3.S3, error)

func S3BucketProt

func S3BucketProt(bname, prot string) (*s3.S3, error)

Types

type AuthCtx

type AuthCtx struct {
	UsersCol *mgo.Collection
	// contains filtered or unexported fields
}

func AuthContext

func AuthContext() (*AuthCtx, error)

func (*AuthCtx) MakeJWT

func (ctx *AuthCtx) MakeJWT(claims map[string]interface{}) (string, error)

Jump to

Keyboard shortcuts

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