Documentation
¶
Index ¶
- Constants
- Variables
- func GetRecentRequest() []string
- type ActivitiesResponse
- type ActivityResponse
- type Component
- func (c *Component) BatchGetAccountsActivities(ctx echo.Context) (err error)
- func (c *Component) CollectMetric(ctx context.Context, path, value string)
- func (c *Component) CollectTrace(ctx context.Context, path, value string)
- func (c *Component) GetAccountActivities(ctx echo.Context, account string, request docs.GetFederatedAccountParams) (err error)
- func (c *Component) GetActivity(ctx echo.Context, id string, request docs.GetFederatedTxIDParams) error
- func (c *Component) GetHandles(ctx echo.Context) error
- func (c *Component) GetNetworkActivities(ctx echo.Context, net network.Network, request docs.GetFederatedNetworkParams) (err error)
- func (c *Component) GetPlatformActivities(ctx echo.Context, plat federated.Platform, ...) (err error)
- func (c *Component) InitMeter() (err error)
- func (c *Component) Name() string
- func (c *Component) TransformActivities(ctx context.Context, activities []*activityx.Activity) []*activityx.Activity
- func (c *Component) TransformActivity(ctx context.Context, activity *activityx.Activity) (*activityx.Activity, error)
- func (c *Component) TransformSocialPost(ctx context.Context, network network.Network, platform string, ...) (activity.Action, error)
- func (c *Component) TransformSocialType(ctx context.Context, network network.Network, platform string, ...) (activity.Action, error)
- type HandleRequest
- type MetaCursor
- type MetaTotalPages
- type PaginatedHandlesResponse
Constants ¶
View Source
const MaxRecentRequests = 10
View Source
const Name = "federated"
Variables ¶
View Source
var (
RecentRequests *cb.Queue
)
Functions ¶
func GetRecentRequest ¶
func GetRecentRequest() []string
GetRecentRequest returns the filtered recent requests.
Types ¶
type ActivitiesResponse ¶
type ActivitiesResponse struct {
Data []*activityx.Activity `json:"data"`
Meta *MetaCursor `json:"meta,omitempty"`
}
type ActivityResponse ¶
type ActivityResponse struct {
Data *activityx.Activity `json:"data"`
Meta *MetaTotalPages `json:"meta"`
}
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func NewComponent ¶
func (*Component) BatchGetAccountsActivities ¶
BatchGetAccountsActivities returns the activities of multiple accounts in a single request
func (*Component) CollectMetric ¶
func (*Component) CollectTrace ¶
func (*Component) GetAccountActivities ¶
func (*Component) GetActivity ¶
func (*Component) GetHandles ¶
GetHandles retrieves all active handles or updated handles based on the 'since' parameter
func (*Component) GetNetworkActivities ¶
func (*Component) GetPlatformActivities ¶
func (*Component) TransformActivities ¶
func (*Component) TransformActivity ¶
func (c *Component) TransformActivity(ctx context.Context, activity *activityx.Activity) (*activityx.Activity, error)
TransformActivity should add related URLs to the activity based on action tag, network and platform
type HandleRequest ¶
type MetaCursor ¶
type MetaCursor struct {
Cursor string `json:"cursor"`
}
type MetaTotalPages ¶
type MetaTotalPages struct {
TotalPages int `json:"totalPages"`
}
Click to show internal directories.
Click to hide internal directories.