Documentation
¶
Index ¶
- type Provider
- func (p *Provider) GetPost(ctx context.Context, post string) (domain.Post, error)
- func (p *Provider) GetPostReplies(ctx context.Context, post string, limit int) (domain.Page[domain.Reply], error)
- func (p *Provider) GetProfile(ctx context.Context, username string) (domain.Profile, error)
- func (p *Provider) GetProfilePosts(ctx context.Context, username string, limit int) (domain.Page[domain.Post], error)
- func (p *Provider) Info() provider.Info
- func (p *Provider) SearchPosts(ctx context.Context, query string, limit int) (domain.Page[domain.Post], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
Fail func(string)
SearchPostsFunc func(context.Context, string, int) (domain.Page[domain.Post], error)
GetPostFunc func(context.Context, string) (domain.Post, error)
GetPostRepliesFunc func(context.Context, string, int) (domain.Page[domain.Reply], error)
GetProfileFunc func(context.Context, string) (domain.Profile, error)
GetProfilePostsFunc func(context.Context, string, int) (domain.Page[domain.Post], error)
InfoValue provider.Info
}
func (*Provider) GetPostReplies ¶
func (*Provider) GetProfile ¶
func (*Provider) GetProfilePosts ¶
Click to show internal directories.
Click to hide internal directories.