queries

package
v0.0.0-...-e75800c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IconPresenter

type IconPresenter struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Url       string `json:"url"`
	Type      string `json:"type"`
	Width     int    `json:"width"`
	Height    int    `json:"height"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

type IconQuery

type IconQuery struct {
	Id string `uri:"icon_id" validate:"omitempty,uuid4"`
}

type IconQueryHandler

type IconQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*IconQueryHandler) FindAll

func (h *IconQueryHandler) FindAll(query *IconQuery) ([]*IconPresenter, error)

func (*IconQueryHandler) FindOne

func (h *IconQueryHandler) FindOne(query *IconQuery) (*IconPresenter, error)

type IconRequestPresenter

type IconRequestPresenter struct {
	Id           string         `json:"id"`
	CallerId     string         `json:"caller_id"`
	ServiceName  string         `json:"name"`
	Issuers      datatypes.JSON `json:"issuers"`
	Description  string         `json:"description"`
	LightIconUrl string         `json:"light_icon_url"`
	DarkIconUrl  string         `json:"dark_icon_url"`
	CreatedAt    string         `json:"created_at"`
	UpdatedAt    string         `json:"updated_at"`
	DeletedAt    string         `json:"deleted_at"`
}

type IconRequestQuery

type IconRequestQuery struct {
	Id string `uri:"icon_request_id" validate:"omitempty,uuid4"`
}

type IconRequestQueryHandler

type IconRequestQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*IconRequestQueryHandler) FindAll

func (*IconRequestQueryHandler) FindOne

type IconsCollectionPresenter

type IconsCollectionPresenter struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Icons       datatypes.JSON `json:"icons"`
	CreatedAt   string         `json:"created_at"`
	UpdatedAt   string         `json:"updated_at"`
}

type IconsCollectionQuery

type IconsCollectionQuery struct {
	Id string `uri:"collection_id" validate:"omitempty,uuid4"`
}

type IconsCollectionQueryHandler

type IconsCollectionQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*IconsCollectionQueryHandler) FindAll

func (*IconsCollectionQueryHandler) FindOne

type WebServiceDumpPresenter

type WebServiceDumpPresenter struct {
	WebService datatypes.JSON
}

type WebServicePresenter

type WebServicePresenter struct {
	Id               string         `json:"id"`
	Name             string         `json:"name"`
	Description      string         `json:"description"`
	Issuers          datatypes.JSON `json:"issuers"`
	Tags             datatypes.JSON `json:"tags"`
	IconsCollections datatypes.JSON `json:"icons_collections"`
	MatchRules       datatypes.JSON `json:"match_rules"`
	CreatedAt        string         `json:"created_at"`
	UpdatedAt        string         `json:"updated_at"`
}

type WebServiceQuery

type WebServiceQuery struct {
	Id     string `uri:"service_id" validate:"omitempty,uuid4"`
	Search string `uri:"search" validate:"omitempty,max=128"`
}

type WebServiceQueryHandler

type WebServiceQueryHandler struct {
	Database *gorm.DB
	Qb       *goqu.Database
}

func (*WebServiceQueryHandler) FindAll

func (*WebServiceQueryHandler) FindOne

type WebServicesDumpQuery

type WebServicesDumpQuery struct {
	Limit  int `uri:"limit"`
	Offset int `uri:"offset"`
}

type WebServicesDumpQueryHandler

type WebServicesDumpQueryHandler struct {
	Database *sql.DB
}

func (*WebServicesDumpQueryHandler) Dump

Jump to

Keyboard shortcuts

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