repository

package
v0.0.0-...-4151d87 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account interface {
	FindByID(ctx context.Context, id object.AccountID) (*object.Account, error)
	FindByIDs(ctx context.Context, ids []object.AccountID) ([]*object.Account, error)
	FindByUsername(ctx context.Context, username string) (*object.Account, error)
	Insert(ctx context.Context, username, passwordHash string, createAt time.Time) error
}

type MediaAttachment

type MediaAttachment interface {
	FindByStatusIDs(ctx context.Context, statusIDs []object.StatusID) ([]*object.MediaAttachment, error)
	Select(ctx context.Context, minID, maxID, limit int64) ([]*object.MediaAttachment, error)
}

type Status

type Status interface {
	FindByID(ctx context.Context, id object.StatusID) (*object.Status, error)
	FindByIDs(ctx context.Context, id []object.StatusID) ([]*object.Status, error)
	Select(ctx context.Context, minID, maxID, limit int64) ([]*object.Status, error)
	Insert(ctx context.Context, accountID object.AccountID, content string) (object.StatusID, error)
	Delete(ctx context.Context, id object.StatusID, accountID object.AccountID) error
}

Jump to

Keyboard shortcuts

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