web

package
v6.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const VersionEnv = "DDNS_GO_VERSION"

Variables

This section is empty.

Functions

func BooltoOn

func BooltoOn(b bool) string

func ClearLog

func ClearLog(writer http.ResponseWriter, request *http.Request)

ClearLog

func Ipv4NetInterfaces

func Ipv4NetInterfaces(writer http.ResponseWriter, request *http.Request)

Ipv4NetInterfaces 获得Ipv4网卡信息

func Ipv6NetInterfaces

func Ipv6NetInterfaces(writer http.ResponseWriter, request *http.Request)

Ipv6NetInterfaces 获得Ipv6网卡信息

func Logs

func Logs(writer http.ResponseWriter, request *http.Request)

Logs web

func Save

func Save(writer http.ResponseWriter, request *http.Request)

Save 保存

func WebhookTest

func WebhookTest(writer http.ResponseWriter, request *http.Request)

WebhookTest 测试webhook

func Writing

func Writing(writer http.ResponseWriter, request *http.Request)

Writing 填写信息

Types

type MemoryLogs

type MemoryLogs struct {
	MaxNum int      // 保存最大条数
	Logs   []string // 日志
}

MemoryLogs 内存中的日志

func (*MemoryLogs) Write

func (mlogs *MemoryLogs) Write(p []byte) (n int, err error)

type ViewFunc

type ViewFunc func(http.ResponseWriter, *http.Request)

ViewFunc func

func BasicAuth

func BasicAuth(f ViewFunc) ViewFunc

BasicAuth basic auth

Jump to

Keyboard shortcuts

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