favorites

package
v0.0.0-...-de2e23a Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Favorite

type Favorite struct {
	ID                primitive.ObjectID         `json:"-" bson:"_id,omitempty"`
	Name              string                     `json:"name" bson:"name,omitempty"`
	ProviderID        string                     `json:"providerId" bson:"providerId"`
	ProviderType      catalogClient.ProviderType `json:"providerType" bson:"providerType"`
	Description       string                     `json:"description" bson:"description,omitempty"`
	OriginClusterName string                     `json:"originClusterName" bson:"originClusterName,omitempty"`
	EndpointLocation  string                     `json:"endpointLocation" bson:"endpointLocation,omitempty"`
	WorkflowStructure string                     `json:"workflowStructure" bson:"workflowStructure,omitempty"`
	IsLocal           bool                       `json:"isLocal" bson:"isLocal"`
	Metadata          map[string]interface{}     `json:"metadata" bson:"metadata"`
}

type FavoriteService

type FavoriteService struct {
	Service IService
}

func NewHandler

func NewHandler() *FavoriteService

func (*FavoriteService) SetupRoutes

func (h *FavoriteService) SetupRoutes(g *gin.RouterGroup)

type IService

type IService interface {
	GetAllFavorites() ([]Favorite, error)
	InsertFavorite(favorite *Favorite) error
	DeleteFavorite(providerId string) error
	IsFavorite(providerId string) bool
}

func NewService

func NewService() IService

Jump to

Keyboard shortcuts

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