Documentation ¶
Index ¶
- Constants
- type Demo
- type DemoType
- type OpenTelemetryStoreDemo
- type PokeshopDemo
- type Repository
- func (r *Repository) Count(ctx context.Context, query string) (int, error)
- func (r *Repository) Create(ctx context.Context, demo Demo) (Demo, error)
- func (r *Repository) Delete(ctx context.Context, id id.ID) error
- func (r *Repository) Get(ctx context.Context, id id.ID) (Demo, error)
- func (r *Repository) List(ctx context.Context, take, skip int, query, sortBy, sortDirection string) ([]Demo, error)
- func (r *Repository) Provision(ctx context.Context, demo Demo) error
- func (r *Repository) SetID(demo Demo, id id.ID) Demo
- func (r Repository) SortingFields() []string
- func (r *Repository) Update(ctx context.Context, demo Demo) (Demo, error)
Constants ¶
View Source
const ( ResourceName = "Demo" ResourceNamePlural = "Demos" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Demo ¶
type Demo struct { ID id.ID `json:"id"` Name string `json:"name"` Type DemoType `json:"type"` Enabled bool `json:"enabled"` Pokeshop *PokeshopDemo `json:"pokeshop,omitempty"` OpenTelemetryStore *OpenTelemetryStoreDemo `json:"opentelemetryStore,omitempty"` }
type OpenTelemetryStoreDemo ¶
type PokeshopDemo ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func (Repository) SortingFields ¶
func (r Repository) SortingFields() []string
Click to show internal directories.
Click to hide internal directories.