tags

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func New

func New(state *state.State, converter *typeutils.Converter) Processor

func (*Processor) Follow

func (p *Processor) Follow(
	ctx context.Context,
	account *gtsmodel.Account,
	name string,
) (*apimodel.Tag, gtserror.WithCode)

Follow follows the tag with the given name as the given account. If there is no tag with that name, it creates a tag.

func (*Processor) Followed

func (p *Processor) Followed(
	ctx context.Context,
	accountID string,
	page *paging.Page,
) (*apimodel.PageableResponse, gtserror.WithCode)

Followed gets the user's list of followed tags.

func (*Processor) Get

func (p *Processor) Get(
	ctx context.Context,
	account *gtsmodel.Account,
	name string,
) (*apimodel.Tag, gtserror.WithCode)

Get gets the tag with the given name, including whether it's followed by the given account.

func (*Processor) Unfollow

func (p *Processor) Unfollow(
	ctx context.Context,
	account *gtsmodel.Account,
	name string,
) (*apimodel.Tag, gtserror.WithCode)

Unfollow unfollows the tag with the given name as the given account. If there is no tag with that name, it creates a tag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳