endpoints

package
v0.0.0-...-1eb5c16 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptionCacheItem

type DescriptionCacheItem struct {
	Description appbsky.FeedDescribeFeedGenerator_Output
	ExpiresAt   time.Time
}

type DidResponse

type DidResponse struct {
	Context []string      `json:"@context"`
	ID      string        `json:"id"`
	Service []did.Service `json:"service"`
}

type Endpoints

type Endpoints struct {
	FeedGenerator *feedgenerator.FeedGenerator
	GraphJSONUrl  string
	FeedUsers     map[string][]string

	UniqueSeenUsers *bloom.BloomFilter

	PostRegistry *search.PostRegistry

	DescriptionCache    *DescriptionCacheItem
	DescriptionCacheTTL time.Duration
	// contains filtered or unexported fields
}

func NewEndpoints

func NewEndpoints(feedGenerator *feedgenerator.FeedGenerator, graphJSONUrl string, postRegistry *search.PostRegistry) (*Endpoints, error)

func (*Endpoints) AssignUserToFeed

func (ep *Endpoints) AssignUserToFeed(c *gin.Context)

func (*Endpoints) DescribeFeedGenerator

func (ep *Endpoints) DescribeFeedGenerator(c *gin.Context)

func (*Endpoints) GetFeedMembers

func (ep *Endpoints) GetFeedMembers(c *gin.Context)

func (*Endpoints) GetFeedSkeleton

func (ep *Endpoints) GetFeedSkeleton(c *gin.Context)

func (*Endpoints) GetFeeds

func (ep *Endpoints) GetFeeds(c *gin.Context)

func (*Endpoints) GetWellKnownDID

func (ep *Endpoints) GetWellKnownDID(c *gin.Context)

func (*Endpoints) ProcessUser

func (ep *Endpoints) ProcessUser(feedName string, userDID string)

func (*Endpoints) UnassignUserFromFeed

func (ep *Endpoints) UnassignUserFromFeed(c *gin.Context)

func (*Endpoints) UpdateClusterAssignments

func (ep *Endpoints) UpdateClusterAssignments(c *gin.Context)

type FeedMeta

type FeedMeta struct {
	FeedType  string `json:"feed_type"`
	UserCount int    `json:"user_count"`
}

type GetFeedsResponse

type GetFeedsResponse struct {
	Feeds map[string]FeedMeta `json:"feeds"`
}

Debug endpoints for the Feed Generator Admin Dashboard

Jump to

Keyboard shortcuts

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