Version: v0.0.0-...-f4bee89 Latest Latest

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 21 Imported by: 0




This section is empty.


This section is empty.


func ErrorRes

func ErrorRes(c *fiber.Ctx, status int, err error) error

ErrorRes returns the error response

func FiberErrorHandler

func FiberErrorHandler(c *fiber.Ctx, err error) error

FiberErrorHandler handles errors in fiber In our case that means we change the errors from text to json

func InsertData

func InsertData(dbConn db.Connection, serverSeed string) routeBuilder.M

InsertData adds the profiles to every route

func Routes

func Routes(app *fiber.App, dbConn db.Connection, serverSeed string, testing bool)

Routes defines the routes used


type IMap

type IMap map[string]interface{}

IMap is a wrapper around map[string]interface{} that's faster to use

type RouteScraperScanCVBody

type RouteScraperScanCVBody struct {
	CV    models.CV `json:"cv"`
	Debug bool      `json:"debug"`

RouteScraperScanCVBody is the request body of the routeScraperScanCV

type RouteUpdateOrCreateSecret

type RouteUpdateOrCreateSecret struct {
	Value       json.RawMessage
	Description string

RouteUpdateOrCreateSecret is the post data for the route below

type SeedRes

type SeedRes struct {
	Seed string `json:"seed"`

SeedRes is the response data for auth seed


Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL