views

package
Version: v0.0.0-...-f450a9d Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	RenderSPA(c *gin.Context)
	RenderNotRegistered(email string, c *gin.Context)
	RenderStatusCode(status int, message string, c *gin.Context)
}

type RendererAgent

type RendererAgent struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(
	logger tools.Logger,
	plaidEnvironment string,
	plaidPublicKey string,
	plaidWebhookURL string,
	templateNames map[TemplateName]string,
) RendererAgent

func (RendererAgent) RenderNotRegistered

func (a RendererAgent) RenderNotRegistered(email string, c *gin.Context)

RenderNotRegistered serves the user-not-registered view

func (RendererAgent) RenderSPA

func (a RendererAgent) RenderSPA(c *gin.Context)

ServeSPA renders the single-page app

func (RendererAgent) RenderStatusCode

func (a RendererAgent) RenderStatusCode(status int, message string, c *gin.Context)

RenderStatusCode serves the generic error page

type TemplateName

type TemplateName string
const (
	TemplateNameSPA           TemplateName = "SPA"
	TemplateNameNotRegistered TemplateName = "NotRegistered"
	TemplateNameErrorCode     TemplateName = "404"
)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL