models

package
v0.0.0-...-d550821 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadAss

type BadAss struct {
	Total       int `json:"total"`
	PerPage     int `json:"per_page"`
	CurrentPage int `json:"current_page"`
	LastPage    int `json:"last_page"`
	From        int `json:"from"`
	To          int `json:"to"`
	Data        []struct {
		ID        string `json:"id"`
		Name      string `json:"name"`
		Label     string `json:"label"`
		Author    string `json:"author"`
		Twitter   string `json:"twitter"`
		Active    string `json:"active"`
		CreatedAt string `json:"created_at"`
		UpdatedAt string `json:"updated_at"`
		Lumen     string `json:"lumen"`
		Token     string `json:"token"`
	} `json:"data"`
}

func FirstBadAssPage

func FirstBadAssPage() (*BadAss, error)

URL to use http://bada55.io/lazyload?page=?

func NthBadAssPage

func NthBadAssPage(n int) (*BadAss, error)

type FunCSS

type FunCSS struct {
	UUID   uuid.UUID
	ID     int
	CSSHex string
	Name   string
	Author string
}

func GetAllBadAssAsFunCSS

func GetAllBadAssAsFunCSS() ([]*FunCSS, error)

type FunCSSDB

type FunCSSDB interface {
	Page(page int, limit int, name string) ([]*FunCSS, error)

	ByID(id int) (*FunCSS, error)

	Create(funCSS *FunCSS) error
	Update(funCSS *FunCSS) error
	Delete(funCSS *FunCSS) error
}

type FunCSSService

type FunCSSService interface {
	Page(page int, limit int, name string) ([]*FunCSS, error)

	ByID(id int) (*FunCSS, error)

	Create(funCSS *FunCSS) error
	Update(funCSS *FunCSS) error
	Delete(funCSS *FunCSS) error
}

func NewFunCSSService

func NewFunCSSService(pool *pgxpool.Pool) FunCSSService

type Services

type Services struct {
	FunCSS FunCSSService
}

func NewServices

func NewServices(configFile string) *Services

TODO implement this

Jump to

Keyboard shortcuts

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