model

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Fqdn       string     `json:"fqdn,omitempty"`
	Hosts      []string   `json:"hosts,omitempty"`
	Expiration *time.Time `json:"expiration,omitempty"`
}

func (*Domain) String

func (d *Domain) String() string

type DomainOptions

type DomainOptions struct {
	Fqdn  string   `json:"fqdn"`
	Hosts []string `json:"hosts"`
}

func ParseDomainOptions

func ParseDomainOptions(r *http.Request) (*DomainOptions, error)

func (*DomainOptions) String

func (d *DomainOptions) String() string

type Response

type Response struct {
	Status  int    `json:"status"`
	Message string `json:"msg"`
	Data    Domain `json:"data,omitempty"`
	Token   string `json:"token"`
}

Jump to

Keyboard shortcuts

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