models

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	gorm.Model
	Token string `json:"token"`
}

type ChangeServiceState added in v1.3.1

type ChangeServiceState struct {
	Hash     string `json:"hash" binding:"required"`
	NewState string `json:"state" binding:"required"`
}

type Crt

type Crt struct {
	gorm.Model
	Name string `mapstructure:"name" json:"name"`
	Data []byte `mapstructure:"data" json:"data"`
}

single certificate

type Event

type Event struct {
	Session string                 `json:"session"` // session_hash
	Name    string                 `json:"name"`
	Data    map[string]interface{} `json:"data"` // JSON encoded fields
}

type File

type File struct {
	Hash            string    `json:"hash" gorm:"primaryKey"`
	Date            time.Time `json:"date"`
	FileName        string    `json:"file_name"`
	ContentType     string    `json:"content_type"`
	Size            int64     `json:"size"`
	Data            []byte    `json:"data"`
	InteractionHash string    `json:"interaction_hash"`
	ServiceHash     string    `json:"service_hash"`
}

type FullEvent

type FullEvent struct {
	gorm.Model
	Hash    string    `json:"hash" gorm:"primaryKey"`
	Date    time.Time `json:"date"`
	Session string    `json:"session"`
	Name    string    `json:"name"`
	Data    string    `json:"data"` // JSON encoded fields
}

type InputNumberView

type InputNumberView struct {
	Required bool   `json:"required"`
	Value    int64  `json:"value"`
	Default  int64  `json:"default"`
	Label    string `json:"label"`
}

type InputStringView

type InputStringView struct {
	Required bool   `json:"required"`
	Value    string `json:"value"`
	Default  string `json:"default"`
	Label    string `json:"label"`
}

type Service

type Service struct {
	Hash        string         `json:"hash" gorm:"primary_key"`
	ServiceName string         `json:"serviceName"`
	ModuleName  string         `json:"moduleName"`
	ListenIP    string         `json:"listenIP"`
	ListenPort  int            `json:"listenPort"`
	Settings    datatypes.JSON `json:"moduleSettings"`
	Autostart   bool           `json:"autoStart"`
	Active      bool           `json:"active"`
	BaseProto   string         `json:"baseProto"`
}

type ServiceHash added in v1.3.1

type ServiceHash struct {
	Hash string `json:"hash" binding:"required"`
}

type Session

type Session struct {
	Hash        string    `json:"hash" gorm:"primaryKey"`
	Date        time.Time `json:"date"`
	ClientIP    string    `json:"client_ip" gorm:"index"`
	Description string    `json:"description" gorm:"index"`
	ModuleName  string    `json:"module_name"`
	Service     string    `json:"service" gorm:"index"` // hash
	ServiceName string    `json:"service_name"`
	Visited     bool      `json:"visited"`
	LocalAddr   string    `json:"local_addr"`
}

type SessionInfo

type SessionInfo struct {
	Description string `json:"description"`
	LocalAddr   string `json:"local_addr"`
	ClientIP    string `json:"client_ip"`
}

type Setting

type Setting struct {
	Required bool `json:"required"`
}

type TextView

type TextView struct {
	Setting
	Required bool   `json:"required"`
	Value    string `json:"value"`
	Label    string `json:"label"`
}

type Tunnel added in v1.3.0

type Tunnel struct {
	Hash       string `json:"hash" gorm:"primary_key"`
	Type       string `gorm:"column:type" json:"type"`
	DstHost    string `json:"dstHost"`
	DstPort    int    `json:"dstPort"`
	DstTLS     bool   `json:"dstTLS"`
	Autostart  bool   `json:"autoStart"`
	Connected  bool   `json:"connected"`
	PublicAddr string `json:"publicAddr"`
}

type WebService added in v1.3.1

type WebService struct {
	Hash        string      `json:"hash" `
	ServiceName string      `json:"serviceName" binding:"required"`
	ModuleName  string      `json:"moduleName" binding:"required"`
	ListenIP    string      `json:"listenIP" binding:"required"`
	ListenPort  int         `json:"listenPort" binding:"required"`
	Settings    interface{} `json:"moduleSettings" binding:"required"`
	Autostart   bool        `json:"autoStart"`
	Active      bool        `json:"active"`
	BaseProto   string      `json:"baseProto"`
}

Jump to

Keyboard shortcuts

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