rest

package
v0.0.0-...-7687a33 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountRoutes

func MountRoutes() func(r chi.Router)

Types

type ManageStructure

type ManageStructure struct{}

func (ManageStructure) CreateExposed

func (ctrl ManageStructure) CreateExposed(ctx context.Context, r *request.ManageStructureCreateExposed) (interface{}, error)

func (ManageStructure) CreateMappings

func (ctrl ManageStructure) CreateMappings(ctx context.Context, r *request.ManageStructureCreateMappings) (interface{}, error)

func (ManageStructure) ListAll

func (ctrl ManageStructure) ListAll(ctx context.Context, r *request.ManageStructureListAll) (interface{}, error)

ListAll show the list of exposed / shared / mapped modules

func (ManageStructure) New

func (ManageStructure) ReadExposed

func (ctrl ManageStructure) ReadExposed(ctx context.Context, r *request.ManageStructureReadExposed) (interface{}, error)

func (ManageStructure) ReadMappings

func (ctrl ManageStructure) ReadMappings(ctx context.Context, r *request.ManageStructureReadMappings) (interface{}, error)

ReadMappings outputs an object with the module mappings per each federation module

func (ManageStructure) ReadShared

func (ctrl ManageStructure) ReadShared(ctx context.Context, r *request.ManageStructureReadShared) (interface{}, error)

func (ManageStructure) RemoveExposed

func (ctrl ManageStructure) RemoveExposed(ctx context.Context, r *request.ManageStructureRemoveExposed) (interface{}, error)

func (ManageStructure) UpdateExposed

func (ctrl ManageStructure) UpdateExposed(ctx context.Context, r *request.ManageStructureUpdateExposed) (interface{}, error)

type Node

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

func (Node) Create

func (ctrl Node) Create(ctx context.Context, r *request.NodeCreate) (interface{}, error)

func (Node) Delete

func (ctrl Node) Delete(ctx context.Context, r *request.NodeDelete) (interface{}, error)

func (Node) GenerateURI

func (ctrl Node) GenerateURI(ctx context.Context, r *request.NodeGenerateURI) (interface{}, error)

func (Node) HandshakeComplete

func (ctrl Node) HandshakeComplete(ctx context.Context, r *request.NodeHandshakeComplete) (interface{}, error)

func (Node) HandshakeConfirm

func (ctrl Node) HandshakeConfirm(ctx context.Context, r *request.NodeHandshakeConfirm) (interface{}, error)

func (Node) New

func (Node) New() *Node

func (Node) Pair

func (ctrl Node) Pair(ctx context.Context, r *request.NodePair) (interface{}, error)

func (Node) Read

func (ctrl Node) Read(ctx context.Context, r *request.NodeRead) (interface{}, error)

func (Node) Search

func (ctrl Node) Search(ctx context.Context, r *request.NodeSearch) (interface{}, error)

func (Node) Undelete

func (ctrl Node) Undelete(ctx context.Context, r *request.NodeUndelete) (interface{}, error)

func (Node) Update

func (ctrl Node) Update(ctx context.Context, r *request.NodeUpdate) (interface{}, error)

type NodeHandshake

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

func (NodeHandshake) Initialize

func (ctrl NodeHandshake) Initialize(ctx context.Context, r *request.NodeHandshakeInitialize) (interface{}, error)

func (NodeHandshake) New

type Permissions

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

func (Permissions) Delete

func (ctrl Permissions) Delete(ctx context.Context, r *request.PermissionsDelete) (interface{}, error)

func (Permissions) Effective

func (ctrl Permissions) Effective(ctx context.Context, r *request.PermissionsEffective) (interface{}, error)

func (Permissions) List

func (ctrl Permissions) List(ctx context.Context, r *request.PermissionsList) (interface{}, error)

func (Permissions) New

func (Permissions) New() *Permissions

func (Permissions) Read

func (ctrl Permissions) Read(ctx context.Context, r *request.PermissionsRead) (interface{}, error)

func (Permissions) Trace

func (ctrl Permissions) Trace(ctx context.Context, r *request.PermissionsTrace) (interface{}, error)

func (Permissions) Update

func (ctrl Permissions) Update(ctx context.Context, r *request.PermissionsUpdate) (interface{}, error)

type SyncData

type SyncData struct{}

func (SyncData) New

func (SyncData) New() *SyncData

func (SyncData) ReadExposedAll

func (ctrl SyncData) ReadExposedAll(ctx context.Context, r *request.SyncDataReadExposedAll) (interface{}, error)

func (SyncData) ReadExposedInternal

func (ctrl SyncData) ReadExposedInternal(ctx context.Context, r *request.SyncDataReadExposedInternal) (interface{}, error)

ReadExposedInternal fetches all the data - records (with paging) for an exposed module in an internal format

func (SyncData) ReadExposedSocial

func (ctrl SyncData) ReadExposedSocial(ctx context.Context, r *request.SyncDataReadExposedSocial) (interface{}, error)

ReadExposedInternal fetches all the data - records (with paging) for an exposed module in activity streams format

type SyncStructure

type SyncStructure struct{}

func (SyncStructure) New

func (SyncStructure) ReadExposedInternal

func (ctrl SyncStructure) ReadExposedInternal(ctx context.Context, r *request.SyncStructureReadExposedInternal) (interface{}, error)

ReadExposedInternal gets the exposed module info and serves the internal Corteza format of the structure

func (SyncStructure) ReadExposedSocial

func (ctrl SyncStructure) ReadExposedSocial(ctx context.Context, r *request.SyncStructureReadExposedSocial) (interface{}, error)

ReadExposedSocial gets the exposed module info and serves the activity streams format of the structure

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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