Documentation
¶
Index ¶
- Constants
- func SignFileId(signer *signer.Signer, fid int64) (string, error)
- type CoreHub
- func (c *CoreHub) DecodeSpaceFileId(id string) (int64, error)
- func (c *CoreHub) EncodeSpaceFileId(fid int64) (string, error)
- func (c *CoreHub) ExportState(opts *StateExport) (string, error)
- func (c *CoreHub) HandleUserWS(userId int64, ctx *gin.Context)
- func (c *CoreHub) Import(installId int64, zipfile string) error
- func (c *CoreHub) ListSpaceFilesSigned(installId int64, path string) ([]FileMeta, error)
- func (c *CoreHub) Run() error
- func (c *CoreHub) ServePreviewFileSigned(refId string, ctx *gin.Context)
- func (c *CoreHub) ServeSpaceFileSigned(refId string, ctx *gin.Context)
- func (c *CoreHub) UserSendMessage(msg *dbmodels.UserMessage) (int64, error)
- type FileMeta
- type StateExport
Constants ¶
View Source
const (
Salt = "signed-file"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreHub ¶
type CoreHub struct {
// contains filtered or unexported fields
}
func NewCoreHub ¶
func (*CoreHub) ExportState ¶
func (c *CoreHub) ExportState(opts *StateExport) (string, error)
func (*CoreHub) ListSpaceFilesSigned ¶
func (*CoreHub) ServePreviewFileSigned ¶
func (*CoreHub) ServeSpaceFileSigned ¶
func (*CoreHub) UserSendMessage ¶
func (c *CoreHub) UserSendMessage(msg *dbmodels.UserMessage) (int64, error)
type StateExport ¶
Click to show internal directories.
Click to hide internal directories.