rest

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityHandler

type ActivityHandler struct {
	RuntimeCtx context.Context
	// contains filtered or unexported fields
}

ActivityHandler responds to activity REST requests

func NewActivityHandler

func NewActivityHandler(ctx context.Context) *ActivityHandler

func (*ActivityHandler) Filter

func (a *ActivityHandler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*ActivityHandler) SearchSubscriptions

func (a *ActivityHandler) SearchSubscriptions(req *restful.Request, rsp *restful.Response) error

SearchSubscriptions loads existing subscription for a given object

func (*ActivityHandler) Stream

func (a *ActivityHandler) Stream(req *restful.Request, rsp *restful.Response) error

Stream returns a collection of activities

func (*ActivityHandler) Subscribe

func (a *ActivityHandler) Subscribe(req *restful.Request, rsp *restful.Response) error

Subscribe hooks a given object to another one activity streams

func (*ActivityHandler) SwaggerTags

func (a *ActivityHandler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

Directories

Path Synopsis
Package rest exposes a Rest service for querying activities feed
Package rest exposes a Rest service for querying activities feed

Jump to

Keyboard shortcuts

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