wsHandler

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleLogReadReq

func HandleLogReadReq(req *protos.LogReadReq, hctx wsHelpers.HandlerContext) (*protos.LogReadResp, error)

func HandleNotificationDismissReq added in v4.0.2

func HandleNotificationDismissReq(req *protos.NotificationDismissReq, hctx wsHelpers.HandlerContext) (*protos.NotificationDismissResp, error)

func HandleNotificationReq added in v4.0.2

func HandleNotificationReq(req *protos.NotificationReq, hctx wsHelpers.HandlerContext) (*protos.NotificationResp, error)

func HandlePiquantVersionListReq

func HandlePiquantVersionListReq(req *protos.PiquantVersionListReq, hctx wsHelpers.HandlerContext) (*protos.PiquantVersionListResp, error)

TODO: need to query versions from github container registry or something similar???

func HandleQuantCombineListGetReq

func HandleQuantCombineListGetReq(req *protos.QuantCombineListGetReq, hctx wsHelpers.HandlerContext) (*protos.QuantCombineListGetResp, error)

Anyone can retrieve a quant z-stack if they have quant messaging permissions

func HandleQuantCombineListWriteReq

func HandleQuantCombineListWriteReq(req *protos.QuantCombineListWriteReq, hctx wsHelpers.HandlerContext) (*protos.QuantCombineListWriteResp, error)

Anyone can save a quant z-stack if they have quant messaging permissions

func HandleRunTestReq

func HandleRunTestReq(req *protos.RunTestReq, hctx wsHelpers.HandlerContext) (*protos.RunTestResp, error)

func HandleScanUploadReq

func HandleScanUploadReq(req *protos.ScanUploadReq, hctx wsHelpers.HandlerContext) (*protos.ScanUploadResp, error)

NOTE: before this is sent, we expect the PUT /scan endpoint to have been called and a zip uploaded already

The same parameters passed there (scan id & file name) must be used with this request otherwise we
won't look up the zip correctly and fail.

func HandleSelectedScanEntriesWriteReq

Allowing user to save multiple scans worth of entry indexes in one message

func HandleTagListReq

func HandleTagListReq(req *protos.TagListReq, hctx wsHelpers.HandlerContext) (*protos.TagListResp, error)

func HandleUserAddRoleReq

func HandleUserAddRoleReq(req *protos.UserAddRoleReq, hctx wsHelpers.HandlerContext) (*protos.UserAddRoleResp, error)

///////////////////////////////////////////////////////////////////// Managing a users roles

func HandleUserGroupReq

func HandleUserGroupReq(req *protos.UserGroupReq, hctx wsHelpers.HandlerContext) (*protos.UserGroupResp, error)

Getting an individual user group - this should only be allowed for PIXLISE_ADMIN permissioned users, or group admins

func HandleUserListReq

func HandleUserListReq(req *protos.UserListReq, hctx wsHelpers.HandlerContext) (*protos.UserListResp, error)

///////////////////////////////////////////////////////////////////// Listing users from Auth0

func HandleUserRoleListReq

func HandleUserRoleListReq(req *protos.UserRoleListReq, hctx wsHelpers.HandlerContext) (*protos.UserRoleListResp, error)

///////////////////////////////////////////////////////////////////// Getting all user roles

func HandleUserRolesListReq

func HandleUserRolesListReq(req *protos.UserRolesListReq, hctx wsHelpers.HandlerContext) (*protos.UserRolesListResp, error)

///////////////////////////////////////////////////////////////////// Getting a users roles

func PublishExpressionToZenodo

func PublishExpressionToZenodo(id string, output string, metadata *protos.DOIMetadata, mongo *mongo.Database, zenodoURI string, zenodoToken string) (*protos.ZenodoPublishResponse, error)

func PublishModuleToZenodo

func PublishModuleToZenodo(module *protos.DataModule, metadata *protos.DOIMetadata, zenodoURI string, zenodoToken string) (*protos.ZenodoPublishResponse, error)

Types

type IdOnly

type IdOnly struct {
	Id string `bson:"_id"`
}

Jump to

Keyboard shortcuts

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