unimplemented

package
v0.0.0-...-e0046dd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package unimplemented contains unimplemented implementations of storers

nolint: revive

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemStore

type ItemStore struct{}

ItemStore ...

func (*ItemStore) DeleteItem

func (is *ItemStore) DeleteItem(ctx context.Context, itemID string) error

DeleteItem deletes the [statusthingv1.Item] by its id

func (*ItemStore) FindItems

func (is *ItemStore) FindItems(ctx context.Context, opts ...filters.FilterOption) ([]*v1.Item, error)

FindItems returns all known [statusthingv1.Item] optionally filtered by the provided filters.FilterOption

func (*ItemStore) GetItem

func (is *ItemStore) GetItem(ctx context.Context, itemID string) (*v1.Item, error)

GetItem gets a [statusthingv1.Item] by its id

func (*ItemStore) StoreItem

func (is *ItemStore) StoreItem(ctx context.Context, item *v1.Item) (*v1.Item, error)

StoreItem stores the provided [statusthingv1.Item]

func (*ItemStore) UpdateItem

func (is *ItemStore) UpdateItem(ctx context.Context, itemID string, opts ...filters.FilterOption) error

UpdateItem updates the [statusthingv1.Item] by its id with the provided filters.FilterOption

type NoteStorer

type NoteStorer struct{}

NoteStorer stores [statusthingv1.Note]

func (*NoteStorer) DeleteNote

func (ns *NoteStorer) DeleteNote(ctx context.Context, noteID string) error

DeleteNote deletes a [statusthingv1.Note] by its id

func (*NoteStorer) FindNotes

func (ns *NoteStorer) FindNotes(ctx context.Context, itemID string, opts ...filters.FilterOption) ([]*v1.Note, error)

FindNotes gets all known [statusthingv1.Note]

func (*NoteStorer) GetNote

func (ns *NoteStorer) GetNote(ctx context.Context, noteID string) (*v1.Note, error)

GetNote gets a [statusthingv1.Note] by its id

func (*NoteStorer) StoreNote

func (ns *NoteStorer) StoreNote(ctx context.Context, note *v1.Note, statusThingID string) (*v1.Note, error)

StoreNote stores the provided [statusthingv1.Note] associated with the provided [statusthingv1.StatusThing] by its id

func (*NoteStorer) UpdateNote

func (ns *NoteStorer) UpdateNote(ctx context.Context, noteID string, opts ...filters.FilterOption) error

UpdateNote updates the [statusthingv1.Note] with the provided filters.FilterOption

type StatusStore

type StatusStore struct{}

StatusStore stores [statusthingv1.Status]

func (*StatusStore) DeleteStatus

func (css *StatusStore) DeleteStatus(ctx context.Context, statusID string) error

DeleteStatus deletes a [statusthingv1.Status] by its id

func (*StatusStore) FindStatus

func (ss *StatusStore) FindStatus(ctx context.Context, opts ...filters.FilterOption) ([]*v1.Status, error)

FindStatus returns all know [statusthingv1.Status] optionally filtered by the provided filters.FilterOption

func (*StatusStore) GetStatus

func (ss *StatusStore) GetStatus(ctx context.Context, statusID string) (*v1.Status, error)

GetStatus gets a [statusthingv1.CustomStatus] by its unique id

func (*StatusStore) StoreStatus

func (ss *StatusStore) StoreStatus(ctx context.Context, status *v1.Status) (*v1.Status, error)

StoreStatus stores the provided [statusthingv1.Status]

func (*StatusStore) UpdateStatus

func (ss *StatusStore) UpdateStatus(ctx context.Context, statusID string, opts ...filters.FilterOption) error

UpdateStatus updates the [statusthingv1.Status] by id with the provided filters.FilterOption

type StatusThingStore

type StatusThingStore struct {
	*NoteStorer
	*StatusStore
	*ItemStore
	*UserStore
}

StatusThingStore stores [statusthingv1.StatusThing]

type UserStore

type UserStore struct{}

func (*UserStore) DeleteUser

func (us *UserStore) DeleteUser(ctx context.Context, userID string) error

DeleteUser deletes a v1.User

func (*UserStore) FindUsers

func (us *UserStore) FindUsers(ctx context.Context, opts ...filters.FilterOption) ([]*v1.User, error)

FindUsers finds users

func (*UserStore) GetUser

func (us *UserStore) GetUser(ctx context.Context, username string) (*v1.User, error)

GetUser gets a v1.User by username

func (*UserStore) StoreUser

func (us *UserStore) StoreUser(ctx context.Context, user *v1.User) (*v1.User, error)

StoreUser stores the provied v1.User

func (*UserStore) UpdateUser

func (us *UserStore) UpdateUser(ctx context.Context, userID string, opts ...filters.FilterOption) error

UpdateUser updates a v1.User

Jump to

Keyboard shortcuts

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