helpers

package
v0.0.0-...-c8a0c3b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewRouter

func CreateNewRouter() *chi.Mux

func GenerateTokenString

func GenerateTokenString(email string, id int) string

func GetTokenAuth

func GetTokenAuth() *jwtauth.JWTAuth

func NewError

func NewError(w http.ResponseWriter, r *http.Request, msg string, code int)

func RunRequest

func RunRequest(method string, ts *httptest.Server, urlPart string, body io.Reader) (*http.Response, error)

func UploadCloudinary

func UploadCloudinary(file, user_id string, tags []string) (string, int, int, error)

Upload Image to Cloudinary

Types

type Error

type Error struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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