domain

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Light string = "light"
	Dark         = "dark"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Icon

type Icon struct {
	gorm.Model

	Id     uuid.UUID `gorm:"primarykey"`
	Name   string
	Type   string
	Url    string
	Width  int
	Height int
}

func (Icon) TableName

func (Icon) TableName() string

type IconRequest

type IconRequest struct {
	gorm.Model

	Id           uuid.UUID `gorm:"primarykey"`
	CallerId     string
	ServiceName  string
	Issuers      datatypes.JSON
	Description  string
	LightIconUrl string
	DarkIconUrl  string
}

func (IconRequest) TableName

func (IconRequest) TableName() string

type IconsCollection

type IconsCollection struct {
	gorm.Model

	Id          uuid.UUID `gorm:"primarykey"`
	Name        string
	Description string
	Icons       datatypes.JSON
}

func (IconsCollection) TableName

func (IconsCollection) TableName() string

type IconsCollectionRepository

type IconsCollectionRepository interface {
	Save(iconsCollection *IconsCollection) error
	Update(iconsCollection *IconsCollection) error
	Delete(iconsCollection *IconsCollection) error
	FindById(id uuid.UUID) (*IconsCollection, error)
	FindAll() []*IconsCollection
}

type IconsCollectionsRelationsRepository

type IconsCollectionsRelationsRepository interface {
	DeleteAll(iconsCollection *IconsCollection) error
}

type IconsRelationsRepository

type IconsRelationsRepository interface {
	DeleteAll(icon *Icon) error
}

type IconsRepository

type IconsRepository interface {
	Save(icon *Icon) error
	Update(icon *Icon) error
	Delete(icon *Icon) error
	FindById(id uuid.UUID) (*Icon, error)
	FindAll() []*Icon
}

type IconsRequestsRepository

type IconsRequestsRepository interface {
	Save(iconRequest *IconRequest) error
	Update(iconRequest *IconRequest) error
	Delete(iconRequest *IconRequest) error
	FindById(id uuid.UUID) (*IconRequest, error)
	FindAll() []*IconRequest
}

type WebService

type WebService struct {
	gorm.Model

	Id               uuid.UUID `gorm:"primarykey"`
	Name             string
	Description      string
	Issuers          datatypes.JSON
	Tags             datatypes.JSON
	IconsCollections datatypes.JSON
	MatchRules       datatypes.JSON
}

func (WebService) TableName

func (WebService) TableName() string

type WebServiceAlreadyExistsError

type WebServiceAlreadyExistsError struct {
	Name string
}

func (WebServiceAlreadyExistsError) Error

type WebServicesRepository

type WebServicesRepository interface {
	Save(webService *WebService) error
	Update(webService *WebService) error
	Delete(webService *WebService) error
	FindById(webService uuid.UUID) (*WebService, error)
	FindByName(name string) (*WebService, error)
	FindAll() []*WebService
}

Jump to

Keyboard shortcuts

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