models

package
v0.0.0-...-a46933f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByContentTypeAndName

type ByContentTypeAndName []ContentModel

sort interface

func (ByContentTypeAndName) Len

func (a ByContentTypeAndName) Len() int

func (ByContentTypeAndName) Less

func (c ByContentTypeAndName) Less(i, j int) bool

func (ByContentTypeAndName) Swap

func (a ByContentTypeAndName) Swap(i, j int)

type ContentModel

type ContentModel struct {
	Name           string      `json:"name"`
	ContentType    string      `json:"type"`
	Path           string      `json:"path"`
	Last_modified  string      `json:"last_modified"`
	Created        string      `json:"created"`
	Content        interface{} `json:"content"`
	Format         string      `json:"format"`
	Mimetype       string      `json:"mimetype"`
	Size           int64       `json:"size"`
	Writable       bool        `json:"writable"`
	Hash           int         `json:"hash"`
	Hash_algorithm string      `json:"hash_algorithm"`
}

type KernelModel

type KernelModel struct {
	Id             string `json:"id"`
	Name           string `json:"name"`
	LastActivity   string `json:"last_activity"`
	ExecutionState string `json:"execution_state"`
	Connections    int    `json:"connections"`
}

type SessionModel

type SessionModel struct {
	Id          string      `json:"id"`
	Path        string      `json:"path"`
	Name        string      `json:"name"`
	SessionType string      `json:"type"`
	Kernel      KernelModel `json:"kernel"`
}

Jump to

Keyboard shortcuts

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