edgeapi

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func (*BaseResponse) Error

func (this *BaseResponse) Error() error

func (*BaseResponse) IsValid

func (this *BaseResponse) IsValid() bool

type CreateNSRecordResponse

type CreateNSRecordResponse struct {
	BaseResponse

	Data struct {
		NSRecordId int64 `json:"nsRecordId"`
	} `json:"data"`
}

type FindAllNSRoutesResponse

type FindAllNSRoutesResponse struct {
	BaseResponse

	Data struct {
		NSRoutes []struct {
			Name string `json:"name"`
			Code string `json:"code"`
		} `json:"nsRoutes"`
	} `json:"data"`
}

type FindDomainWithNameResponse

type FindDomainWithNameResponse struct {
	BaseResponse

	Data struct {
		NSDomain struct {
			Id   int64  `json:"id"`
			Name string `json:"name"`
		}
	} `json:"data"`
}

type FindNSRecordWithNameAndTypeResponse

type FindNSRecordWithNameAndTypeResponse struct {
	BaseResponse

	Data struct {
		NSRecord struct {
			Id       int64  `json:"id"`
			Name     string `json:"name"`
			Type     string `json:"type"`
			Value    string `json:"value"`
			TTL      int32  `json:"ttl"`
			NSRoutes []struct {
				Name string `json:"name"`
				Code string `json:"code"`
			} `json:"nsRoutes"`
		} `json:"nsRecord"`
	}
}

type FindNSRecordsWithNameAndTypeResponse added in v0.5.8

type FindNSRecordsWithNameAndTypeResponse struct {
	BaseResponse

	Data struct {
		NSRecords []struct {
			Id       int64  `json:"id"`
			Name     string `json:"name"`
			Type     string `json:"type"`
			Value    string `json:"value"`
			TTL      int32  `json:"ttl"`
			NSRoutes []struct {
				Name string `json:"name"`
				Code string `json:"code"`
			} `json:"nsRoutes"`
		} `json:"nsRecords"`
	}
}

type GetAPIAccessToken

type GetAPIAccessToken struct {
	BaseResponse

	Data struct {
		Token     string `json:"token"`
		ExpiresAt int64  `json:"expiresAt"`
	} `json:"data"`
}

type ListNSDomainsResponse

type ListNSDomainsResponse struct {
	BaseResponse

	Data struct {
		NSDomains []struct {
			Id        int64  `json:"id"`
			Name      string `json:"name"`
			IsOn      bool   `json:"isOn"`
			IsDeleted bool   `json:"isDeleted"`
		} `json:"nsDomains"`
	} `json:"data"`
}

type ListNSRecordsResponse

type ListNSRecordsResponse struct {
	BaseResponse

	Data struct {
		NSRecords []struct {
			Id       int64  `json:"id"`
			Name     string `json:"name"`
			Value    string `json:"value"`
			TTL      int32  `json:"ttl"`
			Type     string `json:"type"`
			NSRoutes []struct {
				Name string `json:"name"`
				Code string `json:"code"`
			} `json:"nsRoutes"`
		} `json:"nsRecords"`
	} `json:"data"`
}

type ResponseInterface

type ResponseInterface interface {
	IsValid() bool
	Error() error
}

type SuccessResponse

type SuccessResponse struct {
	BaseResponse
}

type UpdateNSRecordResponse

type UpdateNSRecordResponse struct {
	BaseResponse
}

Jump to

Keyboard shortcuts

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