models

package
v0.0.0-...-fa17a10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReport

func CreateReport(payload Report, ip string) error

func Setup

func Setup(dsn string)

Types

type JSONErrorResponse

type JSONErrorResponse struct {
	Code    int      `json:"code"`
	Message string   `json:"message"`
	Errors  []string `json:"errors"`
}

type Report

type Report struct {
	AppId      string `json:"appId"`
	DeviceId   string `json:"deviceId"`
	AppVersion string `json:"appVersion"`
}

type SEO

type SEO struct {
	Description string
	Keywords    string
}

type Site

type Site struct {
	AppName  string
	Title    string
	Metatags SEO
	Year     int
}

func GetDefaultSite

func GetDefaultSite(title string) Site

Jump to

Keyboard shortcuts

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