rest

package
v2.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package rest exposes a Rest service for querying activities feed

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityHandler

type ActivityHandler struct {
	// contains filtered or unexported fields
}

ActivityHandler responds to activity REST requests

func NewActivityHandler

func NewActivityHandler() *ActivityHandler

func (*ActivityHandler) Filter

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

Filter returns a function to filter the swagger path

func (*ActivityHandler) FilterActivity

func (a *ActivityHandler) FilterActivity(ctx context.Context, workspaces map[string]*idm.Workspace, ac *activity.Object) bool

FilterActivity is used internally to show only authorized events depending on the context

func (*ActivityHandler) SearchSubscriptions

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

SearchSubscriptions loads existing subscription for a given object

func (*ActivityHandler) Stream

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

Stream returns a collection of activities

func (*ActivityHandler) Subscribe

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

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

Jump to

Keyboard shortcuts

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