backend

package
v0.0.0-...-04f4181 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(slice []int64, val int64) bool

func RandStringBytes

func RandStringBytes(n int) string

func StartBack

func StartBack(db *sql.DB, Domain string)

start backend

Types

type Domain

type Domain struct {
	Id         int    `json:"id"`
	Data       string `json:"domain"`
	DeleteTime int64  `json:"delete_time"`
}

type DomainT

type DomainT struct {
	Id         int    `json:"id"`
	Data       string `json:"domain"`
	DeleteTime string `json:"delete_time"`
}

type ErrorContext

type ErrorContext struct {
	Error string
}

type Request

type Request struct {
	Id       int    `json:"id"`
	Data     string `json:"data"`
	SourceIp string `json:"source_ip"`
	Time     string `json:"time"`
}

type Result

type Result struct {
	Error string `json:"error"`
}

type SingleRequest

type SingleRequest struct {
	R     *Request
	Table string
}

type TCPData

type TCPData struct {
	Data     string `json:"data"`
	SourceIP string `json:"source_ip"`
	Time     string `json:"time"`
	Port     string `json:"port"`
	Id       int    `json:"id"`
}

type TcpErr

type TcpErr struct {
	Error error `json:"error"`
}

type TcpResult

type TcpResult struct {
	Port    string `json:"port"`
	Success bool   `json:"success"`
}

type TcpServer

type TcpServer struct {
	Port string `json:"port"`
}

type Template

type Template struct {
	// contains filtered or unexported fields
}

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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