cog

package module
v0.0.0-...-f4696c8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: BSD-3-Clause Imports: 10 Imported by: 68

README

Cog

Go Report Card

The cog package provides functionality to develop reusable components (cogs) for Isomorphic Go web applications.

License

Cog is licensed under the BSD License. Read the LICENSE file for more information.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultGoSourcePath string
View Source
var DefaultTemplatesDirectoryName string
View Source
var ReactivityEnabled = true
View Source
var TemplateFileExtension = ".tmpl"
View Source
var VDOMEnabled = true

Functions

This section is empty.

Types

type Cog

type Cog interface {
	Render() error
	Start() error
}

type UXCog

type UXCog struct {
	Cog

	Props map[string]interface{}
	// contains filtered or unexported fields
}

func (*UXCog) BatchPropUpdate

func (u *UXCog) BatchPropUpdate(props map[string]interface{})

func (*UXCog) CogInit

func (u *UXCog) CogInit(ts *isokit.TemplateSet)

func (*UXCog) CogTemplatePath

func (u *UXCog) CogTemplatePath() string

func (*UXCog) CogType

func (u *UXCog) CogType() reflect.Type

func (*UXCog) Element

func (u *UXCog) Element() *dom.Element

func (*UXCog) GetProps

func (u *UXCog) GetProps() map[string]interface{}

func (*UXCog) ID

func (u *UXCog) ID() string

func (*UXCog) RegisterCogTemplates

func (u *UXCog) RegisterCogTemplates()

func (*UXCog) Render

func (u *UXCog) Render() error

func (*UXCog) RenderCogTemplate

func (u *UXCog) RenderCogTemplate()

func (*UXCog) SetCleanupFunc

func (u *UXCog) SetCleanupFunc(cleanupFunc func())

func (*UXCog) SetCogTemplatePath

func (u *UXCog) SetCogTemplatePath(path string)

func (*UXCog) SetCogType

func (u *UXCog) SetCogType(cogType reflect.Type)

func (*UXCog) SetElement

func (u *UXCog) SetElement(element *dom.Element)

func (*UXCog) SetID

func (u *UXCog) SetID(id string)

func (*UXCog) SetProp

func (u *UXCog) SetProp(key string, value interface{})

func (*UXCog) SetTemplateSet

func (u *UXCog) SetTemplateSet(ts *isokit.TemplateSet)

func (*UXCog) TemplateSet

func (u *UXCog) TemplateSet() *isokit.TemplateSet

Jump to

Keyboard shortcuts

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