provider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name             string   `json:"name"`
	Version          string   `json:"version"`
	Mode             string   `json:"mode"`
	UserAgent        string   `json:"user_agent"`
	SupportedInputs  []string `json:"supported_inputs"`
	KnownLimitations []string `json:"known_limitations"`
}

type Provider

type Provider interface {
	SearchPosts(context.Context, string, int) (domain.Page[domain.Post], error)
	GetPost(context.Context, string) (domain.Post, error)
	GetPostReplies(context.Context, string, int) (domain.Page[domain.Reply], error)
	GetProfile(context.Context, string) (domain.Profile, error)
	GetProfilePosts(context.Context, string, int) (domain.Page[domain.Post], error)
	Info() Info
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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