view

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexPage       string = "index.html"
	EnvelopePage    string = "envelope.html"
	EnvelopesPage   string = "envelopes.html"
	AttachmentsPage string = "attachments.html"
	EndpointsPage   string = "endpoints.html"
)

Variables

This section is empty.

Functions

func Render

func Render(w http.ResponseWriter, code int, page string, data interface{})

Types

type AttachmentsData

type AttachmentsData struct {
	Attachments []envelope.Attachment
	Page        paginate.Page
}

type EndpointsData

type EndpointsData struct {
	Endpoints []endpoint.Endpoint
}

type EnvelopeData

type EnvelopeData struct {
	Envelope  *envelope.Envelope
	Tab       string
	Endpoints []endpoint.Endpoint
}

type EnvelopesData

type EnvelopesData struct {
	Envelopes []envelope.Envelope
	Page      paginate.Page
}

type IndexData

type IndexData struct {
	EnvelopesCount   int
	AttachmentsCount int
	AttachmentsSize  int64
	Envelopes        []envelope.Envelope
	Version          version.Version
}

Jump to

Keyboard shortcuts

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