api

package
v0.0.0-...-d5c2002 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainInfo

func DomainInfo(ctx *fasthttp.RequestCtx)

func ListServers

func ListServers(ctx *fasthttp.RequestCtx)

func UpdateDomain

func UpdateDomain(servers []Server, simple_servers []ServerSSL, domain_name, grade, image, title string) (bool, string)

Types

type Domain

type Domain struct {
	Servers          []Server `json:"endpoints"`
	ServerChanged    bool     `json:"servers_changed"`
	SSLGrade         string   `json:"ssl_grade"`
	PreviousSslGrade string   `json:"previous_ssl_grade"`
	Title            string   `json:"title"`
	Is_down          bool     `json:"is_down"`
}

type Server

type Server struct {
	Address  string `json:"address"`
	SslGrade string `json:"ssl_grade"`
	Country  string `json:"country"`
	Owner    string `json:"owner"`
}

type ServerList

type ServerList struct {
	Items []SimpleDomain `json:"items"`
}

func GetDomains

func GetDomains(list ServerList) ServerList

type ServerSSL

type ServerSSL struct {
	Address  string `json:"ipAddress"`
	SslGrade string `json:"grade"`
}

type SimpleDomain

type SimpleDomain struct {
	Domain   string    `json:"domain"`
	Servers  []Server  `json:"endpoints"`
	SSLGrade string    `json:"ssl_grade"`
	Title    string    `json:"title"`
	Time     time.Time `json:"time_consulted"`
}

Jump to

Keyboard shortcuts

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