apis

package
v0.0.0-...-7c4a135 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DnsAdd

func DnsAdd(r *restful.Request, w *restful.Response)

func DnsDelete

func DnsDelete(r *restful.Request, w *restful.Response)

func DnsGet

func DnsGet(r *restful.Request, w *restful.Response)

func DnsList

func DnsList(r *restful.Request, w *restful.Response)

todo list rewrite

func DnsUpdate

func DnsUpdate(r *restful.Request, w *restful.Response)

func FailedResp

func FailedResp(r *restful.Request, w *restful.Response, code int, message string)

func SuccessResp

func SuccessResp(r *restful.Request, w *restful.Response, data interface{})

Types

type Resp

type Resp struct {
	Title   string      `json:"title"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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