models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 2 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 {
	model.Model
	Token string `json:"token"`
}

type Crt

type Crt struct {
	model.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 {
	model.Model
	Date            time.Time `mapstructure:"date" json:"date"`
	Hash            string    `mapstructure:"hash" json:"hash"`
	FileName        string    `mapstructure:"file_name" json:"file_name"`
	ContentType     string    `mapstructure:"content_type" json:"content_type"`
	Size            int64     `mapstructure:"size" json:"size"`
	Data            []byte    `mapstructure:"data" json:"data"`
	InteractionHash string    `mapstructure:"interaction_hash" json:"interaction_hash"`
	ServiceHash     string    `mapstructure:"service_hash" json:"service_hash"`
}

type FullEvent

type FullEvent struct {
	model.Model
	Hash    string    `json:"hash"`
	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 {
	model.Model
	Hash        string `json:"hash"`
	ServiceName string `json:"serviceName"`
	ModuleName  string `json:"moduleName"`
	ListenIP    string `json:"listenIP"`
	ListenPort  int    `json:"listenPort"`
	Autostart   bool   `json:"autostart"`
	Active      bool   `json:"active"`
	Settings    string `json:"settings"`
	BaseProto   string `json:"baseProto"`
}

type Session

type Session struct {
	model.Model
	Hash        string    `json:"hash"`
	Date        time.Time `json:"date"`
	ClientIP    string    `json:"client_ip"`
	Description string    `json:"description"`
	ModuleName  string    `json:"module_name"`
	Service     string    `json:"service"`      // hash
	ServiceName string    `json:"service_name"` // hash
	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"`
}

Jump to

Keyboard shortcuts

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