controller

package
v0.0.0-...-c76f5c3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: GPL-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package controller provides a RESTful web interface layer. The controllers call the models package to actually perform CRUD actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIHandler

func APIHandler(w http.ResponseWriter, r *http.Request)

APIHandler is a web handler

func AttachmentHandler

func AttachmentHandler(w http.ResponseWriter, r *http.Request)

AttachmentHandler is a web handler

func AttachmentsHandler

func AttachmentsHandler(w http.ResponseWriter, r *http.Request)

AttachmentsHandler is a web handler

func AttendeeHandler

func AttendeeHandler(w http.ResponseWriter, r *http.Request)

AttendeeHandler is a web handler

func AttendeesCSVHandler

func AttendeesCSVHandler(w http.ResponseWriter, r *http.Request)

AttendeesCSVHandler is a web handler

func AttendeesHandler

func AttendeesHandler(w http.ResponseWriter, r *http.Request)

AttendeesHandler is a web handler

func AttributeHandler

func AttributeHandler(w http.ResponseWriter, r *http.Request)

AttributeHandler is a web handler

func AttributesHandler

func AttributesHandler(w http.ResponseWriter, r *http.Request)

AttributesHandler is a web handler

func Auth0Handler

func Auth0Handler(w http.ResponseWriter, r *http.Request)

Auth0Handler is a web handler

func AuthAccessTokenHandler

func AuthAccessTokenHandler(w http.ResponseWriter, r *http.Request)

AuthAccessTokenHandler is a web handler

func AuthHandler

func AuthHandler(w http.ResponseWriter, r *http.Request)

AuthHandler is a web handler

func CommentContextHandler

func CommentContextHandler(w http.ResponseWriter, r *http.Request)

CommentContextHandler is a web handler

func CommentHandler

func CommentHandler(w http.ResponseWriter, r *http.Request)

CommentHandler is a web handler

func CommentsHandler

func CommentsHandler(w http.ResponseWriter, r *http.Request)

CommentsHandler is a web handler

func ConversationHandler

func ConversationHandler(w http.ResponseWriter, r *http.Request)

ConversationHandler is a web handler

func ConversationsHandler

func ConversationsHandler(w http.ResponseWriter, r *http.Request)

ConversationsHandler is a web handler

func EventHandler

func EventHandler(w http.ResponseWriter, r *http.Request)

EventHandler is a web handler

func EventsHandler

func EventsHandler(w http.ResponseWriter, r *http.Request)

EventsHandler is a web handler

func FileHandler

func FileHandler(w http.ResponseWriter, r *http.Request)

FileHandler is a web handler

func FilesHandler

func FilesHandler(w http.ResponseWriter, r *http.Request)

FilesHandler is a web handler

func GeoCodeHandler

func GeoCodeHandler(w http.ResponseWriter, r *http.Request)

GeoCodeHandler is a web handler

func GetAuthContext

func GetAuthContext(c *models.Context) (models.AuthContext, int, error)

GetAuthContext returns the auth context for the current request

func HuddleHandler

func HuddleHandler(w http.ResponseWriter, r *http.Request)

HuddleHandler is a web handler

func HuddleParticipantHandler

func HuddleParticipantHandler(w http.ResponseWriter, r *http.Request)

HuddleParticipantHandler is a web handler

func HuddleParticipantsHandler

func HuddleParticipantsHandler(w http.ResponseWriter, r *http.Request)

HuddleParticipantsHandler is a web handler

func HuddlesHandler

func HuddlesHandler(w http.ResponseWriter, r *http.Request)

HuddlesHandler is a web handler

func IgnoredHandler

func IgnoredHandler(w http.ResponseWriter, r *http.Request)

IgnoredHandler is a web handler

func LastCommentHandler

func LastCommentHandler(w http.ResponseWriter, r *http.Request)

LastCommentHandler is a web handler

func LegalHandler

func LegalHandler(w http.ResponseWriter, r *http.Request)

LegalHandler is a web handler

func LegalsHandler

func LegalsHandler(w http.ResponseWriter, r *http.Request)

LegalsHandler is a web handler

func MenuHandler(w http.ResponseWriter, r *http.Request)

MenuHandler is a web handler

func MetricsHandler

func MetricsHandler(w http.ResponseWriter, r *http.Request)

MetricsHandler is a web handler

func MicrocosmHandler

func MicrocosmHandler(w http.ResponseWriter, r *http.Request)

MicrocosmHandler is a web handler

func MicrocosmsHandler

func MicrocosmsHandler(w http.ResponseWriter, r *http.Request)

func MicrocosmsTreeHandler

func MicrocosmsTreeHandler(w http.ResponseWriter, r *http.Request)

MicrocosmsTreeHandler is a web handler

func NewCommentHandler

func NewCommentHandler(w http.ResponseWriter, r *http.Request)

NewCommentHandler is a web handler

func ParseItemInfo

func ParseItemInfo(c *models.Context) (int64, int64, models.PermissionType, int, error)

ParseItemInfo determines what this attachment is attached to

func PermissionHandler

func PermissionHandler(w http.ResponseWriter, r *http.Request)

PermissionHandler is a web handler

func PollHandler

func PollHandler(w http.ResponseWriter, r *http.Request)

PollHandler is a web handler

func PollsHandler

func PollsHandler(w http.ResponseWriter, r *http.Request)

PollsHandler is a web handler

func ProfileHandler

func ProfileHandler(w http.ResponseWriter, r *http.Request)

ProfileHandler is a web handler

func ProfileOptionsHandler

func ProfileOptionsHandler(w http.ResponseWriter, r *http.Request)

ProfileOptionsHandler is a web handler

func ProfileReadHandler

func ProfileReadHandler(w http.ResponseWriter, r *http.Request)

ProfileReadHandler is a web handler

func ProfilesHandler

func ProfilesHandler(w http.ResponseWriter, r *http.Request)

ProfilesHandler is a web handler

func Redirect404Handler

func Redirect404Handler(w http.ResponseWriter, r *http.Request)

Redirect404Handler is a web handler

func RedirectHandler

func RedirectHandler(w http.ResponseWriter, r *http.Request)

RedirectHandler is a web handler

func RoleCriteriaHandler

func RoleCriteriaHandler(w http.ResponseWriter, r *http.Request)

RoleCriteriaHandler is a web handler

func RoleCriterionHandler

func RoleCriterionHandler(w http.ResponseWriter, r *http.Request)

RoleCriterionHandler is a web handler

func RoleHandler

func RoleHandler(w http.ResponseWriter, r *http.Request)

RoleHandler is a web handler

func RoleMembersHandler

func RoleMembersHandler(w http.ResponseWriter, r *http.Request)

RoleMembersHandler is a web handler

func RoleProfileHandler

func RoleProfileHandler(w http.ResponseWriter, r *http.Request)

RoleProfileHandler is a web handler

func RoleProfilesHandler

func RoleProfilesHandler(w http.ResponseWriter, r *http.Request)

RoleProfilesHandler is a web handler

func RolesHandler

func RolesHandler(w http.ResponseWriter, r *http.Request)

RolesHandler is a web handler

func RootHandler

func RootHandler(w http.ResponseWriter, r *http.Request)

RootHandler is a web handler

func SearchHandler

func SearchHandler(w http.ResponseWriter, r *http.Request)

SearchHandler is a web handler

func SiteCheckHandler

func SiteCheckHandler(w http.ResponseWriter, r *http.Request)

SiteCheckHandler is a web handler

func SiteHandler

func SiteHandler(w http.ResponseWriter, r *http.Request)

SiteHandler is a web handler

func SiteHostHandler

func SiteHostHandler(w http.ResponseWriter, r *http.Request)

SiteHostHandler is a web handler

func SiteReservedHandler

func SiteReservedHandler(w http.ResponseWriter, r *http.Request)

SiteReservedHandler is a web handler

func SitesHandler

func SitesHandler(w http.ResponseWriter, r *http.Request)

SitesHandler is a web handler

func TrendingHandler

func TrendingHandler(w http.ResponseWriter, r *http.Request)

TrendingHandler is a web handler

func UpdateOptionHandler

func UpdateOptionHandler(w http.ResponseWriter, r *http.Request)

UpdateOptionHandler is a web handler

func UpdateOptionsHandler

func UpdateOptionsHandler(w http.ResponseWriter, r *http.Request)

UpdateOptionsHandler is a web handler

func UpdatesHandler

func UpdatesHandler(w http.ResponseWriter, r *http.Request)

UpdatesHandler is a web handler

func UserHandler

func UserHandler(w http.ResponseWriter, r *http.Request)

UserHandler is a web handler

func UsersBatchHandler

func UsersBatchHandler(w http.ResponseWriter, r *http.Request)

UsersBatchHandler is a web handler

func UsersHandler

func UsersHandler(w http.ResponseWriter, r *http.Request)

UsersHandler is a web handler

func V1Handler

func V1Handler(w http.ResponseWriter, r *http.Request)

V1Handler is a web handler

func WatcherHandler

func WatcherHandler(w http.ResponseWriter, r *http.Request)

WatcherHandler is a web handler

func WatchersHandler

func WatchersHandler(w http.ResponseWriter, r *http.Request)

WatchersHandler is a web handler

func WhoAmIHandler

func WhoAmIHandler(w http.ResponseWriter, r *http.Request)

WhoAmIHandler is the web handler

Types

type AttachmentController

type AttachmentController struct{}

AttachmentController is a web controller

func (*AttachmentController) Delete

func (ctl *AttachmentController) Delete(c *models.Context)

Delete handles DELETE

type AttachmentsController

type AttachmentsController struct{}

AttachmentsController is a web controller

func (*AttachmentsController) Create

func (ctl *AttachmentsController) Create(c *models.Context)

Create handles POST

func (*AttachmentsController) ReadMany

func (ctl *AttachmentsController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type AttendeeController

type AttendeeController struct{}

AttendeeController is a web controller

func (*AttendeeController) Delete

func (ctl *AttendeeController) Delete(c *models.Context)

Delete handles DELETE

func (*AttendeeController) Read

func (ctl *AttendeeController) Read(c *models.Context)

Read handles GET

func (*AttendeeController) Update

func (ctl *AttendeeController) Update(c *models.Context)

Update handles PUT

type AttendeesCSVController

type AttendeesCSVController struct{}

AttendeesCSVController is a web controller

func (*AttendeesCSVController) ReadMany

func (ctl *AttendeesCSVController) ReadMany(c *models.Context)

ReadMany handles GET

type AttendeesController

type AttendeesController struct{}

AttendeesController is a web controller

func (*AttendeesController) ReadMany

func (ctl *AttendeesController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

func (*AttendeesController) UpdateMany

func (ctl *AttendeesController) UpdateMany(c *models.Context)

UpdateMany handles PUT on the collection

type AttributeController

type AttributeController struct{}

AttributeController is a web controller

func (*AttributeController) Delete

func (ctl *AttributeController) Delete(c *models.Context)

Delete handles DELETE

func (*AttributeController) Read

func (ctl *AttributeController) Read(c *models.Context)

Read handles GET

func (*AttributeController) Update

func (ctl *AttributeController) Update(c *models.Context)

Update handles PUT

type AttributesController

type AttributesController struct{}

AttributesController is a web controller

func (*AttributesController) DeleteMany

func (ctl *AttributesController) DeleteMany(c *models.Context)

DeleteMany handles DELETE for the collection

func (*AttributesController) ReadMany

func (ctl *AttributesController) ReadMany(c *models.Context)

ReadMany handles GET for a collection

func (*AttributesController) UpdateMany

func (ctl *AttributesController) UpdateMany(c *models.Context)

UpdateMany handles PUT for the collection

type Auth0Controller

type Auth0Controller struct{}

Auth0Controller is a web controller

func (*Auth0Controller) Create

func (ctl *Auth0Controller) Create(c *models.Context)

Create handles POST

type AuthAccessTokenController

type AuthAccessTokenController struct{}

AuthAccessTokenController is a web controller

func (*AuthAccessTokenController) Delete

func (ctl *AuthAccessTokenController) Delete(c *models.Context)

Delete handles DELETE

func (*AuthAccessTokenController) Read

Read handles GET

type CommentContextController

type CommentContextController struct{}

CommentContextController is a web controller

func (*CommentContextController) Read

func (ctl *CommentContextController) Read(c *models.Context)

Read handles GET

type CommentController

type CommentController struct{}

CommentController is a web controller

func (*CommentController) Delete

func (ctl *CommentController) Delete(c *models.Context)

Delete handles DELETE

func (*CommentController) Patch

func (ctl *CommentController) Patch(c *models.Context)

Patch handles PATCH

func (*CommentController) Read

func (ctl *CommentController) Read(c *models.Context)

Read handles GET

func (*CommentController) Update

func (ctl *CommentController) Update(c *models.Context)

Update handles PUT

type CommentsController

type CommentsController struct{}

CommentsController is a web controller

func (*CommentsController) Create

func (ctl *CommentsController) Create(c *models.Context)

Create handles POST

type ConversationController

type ConversationController struct{}

ConversationController is a web controller

func (*ConversationController) Delete

func (ctl *ConversationController) Delete(c *models.Context)

Delete handles DELETE

func (*ConversationController) Patch

func (ctl *ConversationController) Patch(c *models.Context)

Patch handles PATCH

func (*ConversationController) Read

func (ctl *ConversationController) Read(c *models.Context)

Read handles GET

func (*ConversationController) Update

func (ctl *ConversationController) Update(c *models.Context)

Update handles PUT

type ConversationsController

type ConversationsController struct{}

ConversationsController is a web controller

func (*ConversationsController) Create

func (ctl *ConversationsController) Create(c *models.Context)

Create handles POST

func (*ConversationsController) ReadMany

func (ctl *ConversationsController) ReadMany(c *models.Context)

ReadMany handles GET

type EventController

type EventController struct{}

EventController is a web controller

func (*EventController) Delete

func (ctl *EventController) Delete(c *models.Context)

Delete handles DELETE

func (*EventController) Patch

func (ctl *EventController) Patch(c *models.Context)

Patch handles PATCH

func (*EventController) Read

func (ctl *EventController) Read(c *models.Context)

Read handles GET

func (*EventController) Update

func (ctl *EventController) Update(c *models.Context)

Update handles PUT

type EventsController

type EventsController struct{}

EventsController is a web controller

func (*EventsController) Create

func (ctl *EventsController) Create(c *models.Context)

Create handles POST

func (*EventsController) ReadMany

func (ctl *EventsController) ReadMany(c *models.Context)

ReadMany handles GET

type FileController

type FileController struct{}

FileController is a web controller

func (*FileController) Read

func (ctl *FileController) Read(c *models.Context)

Read handles GET

type FilesController

type FilesController struct{}

FilesController is a web controller

func (*FilesController) Create

func (ctl *FilesController) Create(c *models.Context)

Create handles POST

type GeoCodeController

type GeoCodeController struct{}

GeoCodeController is a web handler

func (*GeoCodeController) Error

func (ctl *GeoCodeController) Error(c *models.Context, message string, status int)

Error is a generic error handler for the Geo controller

func (*GeoCodeController) Read

func (ctl *GeoCodeController) Read(c *models.Context)

Read handles GET

type HuddleController

type HuddleController struct{}

HuddleController is a web controller

func (*HuddleController) Delete

func (ctl *HuddleController) Delete(c *models.Context)

Delete handles DELETE

func (*HuddleController) Read

func (ctl *HuddleController) Read(c *models.Context)

Read handles GET

type HuddleParticipantController

type HuddleParticipantController struct{}

HuddleParticipantController is a web controller

func (*HuddleParticipantController) Delete

func (ctl *HuddleParticipantController) Delete(c *models.Context)

Delete handles DELETE

func (*HuddleParticipantController) Read

Read handles GET

func (*HuddleParticipantController) Update

func (ctl *HuddleParticipantController) Update(c *models.Context)

Update handles PUT

type HuddleParticipantsController

type HuddleParticipantsController struct{}

HuddleParticipantsController is a web controller

func (*HuddleParticipantsController) ReadMany

func (ctl *HuddleParticipantsController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

func (*HuddleParticipantsController) UpdateMany

func (ctl *HuddleParticipantsController) UpdateMany(c *models.Context)

UpdateMany handles PUT for the collection

type HuddlesController

type HuddlesController struct{}

HuddlesController is a web controller

func (*HuddlesController) Create

func (ctl *HuddlesController) Create(c *models.Context)

Create handles POST

func (*HuddlesController) ReadMany

func (ctl *HuddlesController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type IgnoredController

type IgnoredController struct{}

IgnoredController is a web controller

func (*IgnoredController) Delete

func (ctl *IgnoredController) Delete(c *models.Context)

Delete handles DELETE

func (*IgnoredController) ReadMany

func (ctl *IgnoredController) ReadMany(c *models.Context)

ReadMany handles GET

func (*IgnoredController) Update

func (ctl *IgnoredController) Update(c *models.Context)

Update handles PUT

type LastCommentController

type LastCommentController struct{}

LastCommentController is a web controller

func (*LastCommentController) Read

func (ctl *LastCommentController) Read(c *models.Context)

Read handles GET

type LegalController

type LegalController struct{}

LegalController is a web controller

func (*LegalController) Read

func (ctl *LegalController) Read(c *models.Context)

Read handles GET

type MenuController struct{}

MenuController is a web controller

func (ctl *MenuController) Delete(c *models.Context, siteID int64)

Delete handles DELETE

func (ctl *MenuController) Read(c *models.Context, siteID int64)

Read handles GET

func (ctl *MenuController) Update(c *models.Context, siteID int64)

Update handles PUT

type MetricsController

type MetricsController struct{}

MetricsController is a web controller

func (*MetricsController) Read

func (ctl *MetricsController) Read(c *models.Context)

Read handles GET

func (*MetricsController) Update

func (ctl *MetricsController) Update(c *models.Context)

Update handles PUT

type MicrocosmController

type MicrocosmController struct{}

MicrocosmController is a web controller

func (*MicrocosmController) Delete

func (ctl *MicrocosmController) Delete(c *models.Context)

Delete handles DELETE

func (*MicrocosmController) Patch

func (ctl *MicrocosmController) Patch(c *models.Context)

Patch handles PATCH

func (*MicrocosmController) Read

func (ctl *MicrocosmController) Read(c *models.Context)

Read handles GET

func (*MicrocosmController) Update

func (ctl *MicrocosmController) Update(c *models.Context)

Update handles PUT

type MicrocosmsController

type MicrocosmsController struct{}

MicrocosmsController is a web controller

func (*MicrocosmsController) Create

func (ctl *MicrocosmsController) Create(c *models.Context)

Create handles GET

func (*MicrocosmsController) ReadMany

func (ctl *MicrocosmsController) ReadMany(c *models.Context)

ReadMany handles GET

type MicrocosmsTreeController

type MicrocosmsTreeController struct{}

MicrocosmsTreeController is a web controller

func (*MicrocosmsTreeController) ReadMany

func (ctl *MicrocosmsTreeController) ReadMany(c *models.Context)

ReadMany handles GET

type NewCommentController

type NewCommentController struct{}

NewCommentController is a web controller

func (*NewCommentController) Read

func (ctl *NewCommentController) Read(c *models.Context)

Read handles GET

type PermissionController

type PermissionController struct{}

PermissionController is a web controller

func (*PermissionController) Read

func (ctl *PermissionController) Read(c *models.Context)

Read handles GET

type PollController

type PollController struct{}

PollController is a web controller

func (*PollController) Delete

func (ctl *PollController) Delete(c *models.Context)

Delete handles DELETE

func (*PollController) Patch

func (ctl *PollController) Patch(c *models.Context)

Patch handles PATCH

func (*PollController) Read

func (ctl *PollController) Read(c *models.Context)

Read handles GET

func (*PollController) Update

func (ctl *PollController) Update(c *models.Context)

Update handles PUT

type PollsController

type PollsController struct{}

PollsController is a web controller

func (*PollsController) Create

func (ctl *PollsController) Create(c *models.Context)

Create handles POST

func (*PollsController) ReadMany

func (ctl *PollsController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type ProfileController

type ProfileController struct{}

ProfileController is a web controller

func (*ProfileController) Create

func (ctl *ProfileController) Create(c *models.Context)

Create handles POST

func (*ProfileController) Delete

func (ctl *ProfileController) Delete(c *models.Context)

Delete handles DELETE

func (*ProfileController) Patch

func (ctl *ProfileController) Patch(c *models.Context)

Patch handles PATCH

func (*ProfileController) Read

func (ctl *ProfileController) Read(c *models.Context)

Read handles GET

func (*ProfileController) Update

func (ctl *ProfileController) Update(c *models.Context)

Update handles PUT

type ProfileOptionsController

type ProfileOptionsController struct{}

ProfileOptionsController is a web controller

func (*ProfileOptionsController) Read

func (ctl *ProfileOptionsController) Read(c *models.Context)

Read handles GET

func (*ProfileOptionsController) Update

func (ctl *ProfileOptionsController) Update(c *models.Context)

Update handles PUT

type ProfileReadController

type ProfileReadController struct{}

ProfileReadController is a web controller

func (*ProfileReadController) Update

func (ctl *ProfileReadController) Update(c *models.Context)

Update handles PUT

type ProfilesController

type ProfilesController struct{}

ProfilesController is a web controller

func (*ProfilesController) Create

func (ctl *ProfilesController) Create(c *models.Context)

Create handles POST

func (*ProfilesController) ReadMany

func (ctl *ProfilesController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type Redirect404Controller

type Redirect404Controller struct{}

Redirect404Controller is a web controller

func (*Redirect404Controller) Read

func (ctl *Redirect404Controller) Read(c *models.Context)

Read handles GET

type RedirectController

type RedirectController struct{}

RedirectController is a web controller

func (*RedirectController) Read

func (ctl *RedirectController) Read(c *models.Context)

Read handles GET

type RoleController

type RoleController struct{}

RoleController is a web controller

func (*RoleController) Delete

func (ctl *RoleController) Delete(c *models.Context)

Delete handles DELETE

func (*RoleController) Patch

func (ctl *RoleController) Patch(c *models.Context)

Patch handles PATCH

func (*RoleController) Read

func (ctl *RoleController) Read(c *models.Context)

Read handles GET

func (*RoleController) Update

func (ctl *RoleController) Update(c *models.Context)

Update handles PUT

type RoleCriteriaController

type RoleCriteriaController struct{}

RoleCriteriaController is a web controller

func (*RoleCriteriaController) Create

func (ctl *RoleCriteriaController) Create(c *models.Context)

Create handles POST

func (*RoleCriteriaController) DeleteMany

func (ctl *RoleCriteriaController) DeleteMany(c *models.Context)

DeleteMany handles DELETE for the collection

func (*RoleCriteriaController) ReadMany

func (ctl *RoleCriteriaController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type RoleCriterionController

type RoleCriterionController struct{}

RoleCriterionController is a web controller

func (*RoleCriterionController) Delete

func (ctl *RoleCriterionController) Delete(c *models.Context)

Delete handles DELETE

func (*RoleCriterionController) Read

func (ctl *RoleCriterionController) Read(c *models.Context)

Read handles GET Returns a single criterion that is used as part of the filter for this role

func (*RoleCriterionController) Update

func (ctl *RoleCriterionController) Update(c *models.Context)

Update handles PUT

type RoleMembersController

type RoleMembersController struct{}

RoleMembersController is a web controller

func (*RoleMembersController) ReadMany

func (ctl *RoleMembersController) ReadMany(c *models.Context)

ReadMany handles GET for the collection Returns an array of all members that are included in this role by either implicit (role criteria) or explicit (role profiles) inclusion

type RoleProfileController

type RoleProfileController struct{}

RoleProfileController is a web controller

func (*RoleProfileController) Delete

func (ctl *RoleProfileController) Delete(c *models.Context)

Delete handles DELETE Note: This only affects explicitly assigned roles and not roles implicitly included by criteria

func (*RoleProfileController) Read

func (ctl *RoleProfileController) Read(c *models.Context)

Read handles GET Returns information on a profile assigned to this role

func (*RoleProfileController) Update

func (ctl *RoleProfileController) Update(c *models.Context)

Update handles PUT Explicitly associates a profile to this role

type RoleProfilesController

type RoleProfilesController struct{}

RoleProfilesController is a web controller

func (*RoleProfilesController) DeleteMany

func (ctl *RoleProfilesController) DeleteMany(c *models.Context)

DeleteMany handles DELETE Removes one or more profiles (that were explicitly assigned) from this role

func (*RoleProfilesController) ReadMany

func (ctl *RoleProfilesController) ReadMany(c *models.Context)

ReadMany handles GET for the collection Returns an array of all of the profiles explicitly assigned to this role

func (*RoleProfilesController) UpdateMany

func (ctl *RoleProfilesController) UpdateMany(c *models.Context)

UpdateMany handles PUT on the collection Assigns one or more profiles explicitly to this role

type RolesController

type RolesController struct{}

RolesController is a web controller

func (*RolesController) Create

func (ctl *RolesController) Create(c *models.Context)

Create handles POST If microcosm_id is provided in request args then this is a role on a microcosm otherwise this is a default role on this site

func (*RolesController) ReadMany

func (ctl *RolesController) ReadMany(c *models.Context)

ReadMany handles GET If microcosm_id is provided in request args then these are the roles for this microcosm, otherwise this is a list of the default roles on this site

type SearchController

type SearchController struct{}

SearchController is a web controller

func (*SearchController) Read

func (ctl *SearchController) Read(c *models.Context)

Read handles GET

type SiteCheckController

type SiteCheckController struct{}

SiteCheckController is a web controller

func (*SiteCheckController) Read

func (ctl *SiteCheckController) Read(c *models.Context)

Read handles GET

type SiteController

type SiteController struct{}

SiteController is a web controller

func (*SiteController) Read

func (ctl *SiteController) Read(c *models.Context)

Read handles GET either by /site or /sites/{site_id}

func (*SiteController) Update

func (ctl *SiteController) Update(c *models.Context)

Update handles PUT

type SiteHostController

type SiteHostController struct{}

SiteHostController is a web controller

func (*SiteHostController) Read

func (ctl *SiteHostController) Read(c *models.Context)

Read handles GET

type SiteReservedController

type SiteReservedController struct{}

SiteReservedController is a web controller

func (*SiteReservedController) Read

func (ctl *SiteReservedController) Read(c *models.Context)

Read handles GET

type SitesController

type SitesController struct{}

SitesController is a web controller

func (*SitesController) Create

func (ctl *SitesController) Create(c *models.Context)

Create handles POST

func (*SitesController) ReadMany

func (ctl *SitesController) ReadMany(c *models.Context)

ReadMany handles GET for a collection

type TrendingController

type TrendingController struct{}

TrendingController is a web controller

func (*TrendingController) ReadMany

func (ctl *TrendingController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type UpdateOptionController

type UpdateOptionController struct{}

UpdateOptionController is a web controller

func (*UpdateOptionController) Read

func (ctl *UpdateOptionController) Read(c *models.Context)

Read handles GET

func (*UpdateOptionController) Update

func (ctl *UpdateOptionController) Update(c *models.Context)

Update handles PUT

type UpdateOptionsController

type UpdateOptionsController struct{}

UpdateOptionsController is a web controller

func (*UpdateOptionsController) ReadMany

func (ctl *UpdateOptionsController) ReadMany(c *models.Context)

ReadMany handles GET for a collection

type UpdatesController

type UpdatesController struct{}

UpdatesController is a web controller

func (*UpdatesController) ReadMany

func (ctl *UpdatesController) ReadMany(c *models.Context)

ReadMany handles GET

type UserController

type UserController struct{}

UserController is a web controller

func (*UserController) Delete

func (ctl *UserController) Delete(c *models.Context)

Delete handles DELETE

func (*UserController) Read

func (ctl *UserController) Read(c *models.Context)

Read handles GET

func (*UserController) Update

func (ctl *UserController) Update(c *models.Context)

Update handles PUT

type UsersBatchController

type UsersBatchController struct{}

UsersBatchController is a web controller

func (*UsersBatchController) Manage

func (ctl *UsersBatchController) Manage(c *models.Context)

Manage allows the management of users by a site admin

type UsersController

type UsersController struct{}

UsersController is a web controller

func (*UsersController) Create

func (ctl *UsersController) Create(c *models.Context)

Create handles POST

type WatcherController

type WatcherController struct{}

WatcherController is a web controller

func (*WatcherController) Delete

func (ctl *WatcherController) Delete(c *models.Context)

Delete handles DELETE

func (*WatcherController) Update

func (ctl *WatcherController) Update(c *models.Context)

Update handles PUT

type WatcherType

type WatcherType struct {
	models.WatcherType

	UpdateTypeID int64 `json:"updateTypeId"`
}

WatcherType allows a watcher to be marshaled from form data

type WatchersController

type WatchersController struct{}

WatchersController is a web controller

func (*WatchersController) Create

func (ctl *WatchersController) Create(c *models.Context)

Create handles POST

func (*WatchersController) ReadMany

func (ctl *WatchersController) ReadMany(c *models.Context)

ReadMany handles GET for the collection

type WhoAmIController

type WhoAmIController struct{}

WhoAmIController is the web controller

func (*WhoAmIController) Read

func (wc *WhoAmIController) Read(c *models.Context)

Jump to

Keyboard shortcuts

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