goblet

package
v0.0.0-...-91ccd0e Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveContent

func ActiveContent(out goio.Printer, contentName string, a ...interface{})

ActiveContent - to be used with webactions.js embedded resource

func ActiveScript

func ActiveScript(out goio.Printer, a ...interface{})

ActiveScript - to be used with webactions.js embedded resource

func Elem

func Elem(out goio.Printer, elemName string, a ...interface{})

Elem Elem

func EndActiveContent

func EndActiveContent(out goio.Printer, contentName string)

EndActiveContent - to be used with webactions.js embedded resource

func EndActiveScript

func EndActiveScript(out goio.Printer)

EndActiveScript - to be used with webactions.js embedded resource

func EndElem

func EndElem(out goio.Printer, elemName string)

EndElem EndElem

func MimetypesTSV

func MimetypesTSV() io.Reader

MimetypesTSV MimetypesTSV

func PerformHTTPServletRequest

func PerformHTTPServletRequest(w http.ResponseWriter, r *http.Request)

PerformHTTPServletRequest PerformHttpServletRequest

func PerformServletRequest

func PerformServletRequest(w io.Writer, r io.Reader)

PerformServletRequest PerformServletRequest

func PrintProperties

func PrintProperties(out goio.Printer, parenthasis string, props ...interface{})

PrintProperties PrintProperties

func RegisterEmbededReader

func RegisterEmbededReader(path string, readerhndl func() io.Reader)

RegisterEmbededReader RegisterEmbededReader

func RegisterEmbededReaders

func RegisterEmbededReaders(a ...interface{})

RegisterEmbededReaders RegisterEmbededReaders

func RegisterWidget

func RegisterWidget(path string, widgetname string, widgetinvokehndle func(*WidgetBroker) Widget, a ...interface{})

RegisterWidget RegisterWidget

func RegisterWidgetPath

func RegisterWidgetPath(path string, a ...interface{})

RegisterWidgetPath RegisterWidgetPath

func RegisteredEmbededReader

func RegisteredEmbededReader(path string) (readerhndl func() io.Reader)

RegisteredEmbededReader RegisteredEmbededReader

func SearchWidgetInvokeHandle

func SearchWidgetInvokeHandle(wdgtpath string) (wdgtinvhandle func(*WidgetBroker) Widget, wdgtname string, actionpath string)

SearchWidgetInvokeHandle SearchWidgetInvokeHandle

func ServletGET

func ServletGET(servlet *Servlet, request *Request, response *Response) (err error)

ServletGET ServletGET

func ServletPOST

func ServletPOST(servlet *Servlet, request *Request, response *Response) (err error)

ServletPOST ServletPOST

func SingleElem

func SingleElem(out goio.Printer, elemName string, props ...interface{})

SingleElem SingleElem

func SplitPropsIntoFuncAndProps

func SplitPropsIntoFuncAndProps(propstosplit ...interface{}) (props []interface{}, funcs []func())

SplitPropsIntoFuncAndProps SplitPropsIntoFuncAndProps

func StartActiveContent

func StartActiveContent(out goio.Printer, contentName string)

StartActiveContent - to be used with webactions.js embedded resource

func StartActiveScript

func StartActiveScript(out goio.Printer)

StartActiveScript - to be used with webactions.js embedded resource

func StartElem

func StartElem(out goio.Printer, elemName string, props ...interface{})

StartElem StartElem

Types

type ActiveReader

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

ActiveReader ActiveReader

func (*ActiveReader) Close

func (atvr *ActiveReader) Close() (err error)

Close close ActiveReader

func (*ActiveReader) FlushContent

func (atvr *ActiveReader) FlushContent(cntntstarti int64, cntntendi int64)

FlushContent FlushContent

func (*ActiveReader) Read

func (atvr *ActiveReader) Read(p []byte) (n int, err error)

Read refer to io.Reader Read

type BaseWidget

type BaseWidget struct {
	goio.Printer
	// contains filtered or unexported fields
}

BaseWidget BaseWidget

func NewBaseWidget

func NewBaseWidget(wdgtbrkr *WidgetBroker) (bsewdgt *BaseWidget)

NewBaseWidget NewBaseWidget

func (*BaseWidget) Broker

func (bsewdgt *BaseWidget) Broker() *WidgetBroker

Broker Broker

func (*BaseWidget) CallFunc

func (bsewdgt *BaseWidget) CallFunc(funcname string, a ...interface{}) (err error)

CallFunc CallFunc

func (*BaseWidget) CleanupWidget

func (bsewdgt *BaseWidget) CleanupWidget()

CleanupWidget CleanupWidget

func (*BaseWidget) DefaultMarkupHandle

func (bsewdgt *BaseWidget) DefaultMarkupHandle() func() io.Reader

DefaultMarkupHandle DefaultMarkupHandle

func (*BaseWidget) DefaultWidgetMarkupHandle

func (bsewdgt *BaseWidget) DefaultWidgetMarkupHandle(wdgtmrkphndl func() io.Reader)

DefaultWidgetMarkupHandle DefaultWidgetMarkupHandle

func (*BaseWidget) MapWidgetFunction

func (bsewdgt *BaseWidget) MapWidgetFunction(funcname string, funcimpl interface{}, a ...interface{})

MapWidgetFunction MapWidgetFunction

func (*BaseWidget) Print

func (bsewdgt *BaseWidget) Print(a ...interface{}) (int, error)

Print Print

func (*BaseWidget) Println

func (bsewdgt *BaseWidget) Println(a ...interface{}) (int, error)

Println Println

func (*BaseWidget) WidgetMarkupHandle

func (bsewdgt *BaseWidget) WidgetMarkupHandle(funcname ...string) (wdgtmrkphndl func() io.Reader)

WidgetMarkupHandle WidgetMarkupHandle

type Parameters

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

Parameters -> structure containing parameters

func NewParameters

func NewParameters() *Parameters

NewParameters return new instance of Paramaters container

func (*Parameters) CleanupParameters

func (params *Parameters) CleanupParameters()

CleanupParameters function that can be called to assist in cleaning up instance of Parameter container

func (*Parameters) ContainsFileParameter

func (params *Parameters) ContainsFileParameter(pname string) bool

ContainsFileParameter -> check if file parameter exist pname : name

func (*Parameters) ContainsParameter

func (params *Parameters) ContainsParameter(pname string) bool

ContainsParameter -> check if parameter exist pname : name

func (*Parameters) FileKeys

func (params *Parameters) FileKeys() (keys []string)

FileKeys - list of file parameters names (keys)

func (*Parameters) FileParameter

func (params *Parameters) FileParameter(pname string) []interface{}

FileParameter return file paramater - array of file

func (*Parameters) Parameter

func (params *Parameters) Parameter(pname string) []string

Parameter - return a specific parameter values

func (*Parameters) RemoveParameter

func (params *Parameters) RemoveParameter(pname string) (value []string)

RemoveParameter -> remove parameter and return any slice of string value

func (*Parameters) SetFileParameter

func (params *Parameters) SetFileParameter(pname string, clear bool, pfile ...interface{})

SetFileParameter -> set or append file parameter value pname : name pfile : value of interface to add either FileHeader from mime/multipart or any io.Reader implementation clear : clear existing value of parameter

func (*Parameters) SetParameter

func (params *Parameters) SetParameter(pname string, clear bool, pvalue ...string)

SetParameter -> set or append parameter value pname : name pvalue : value of strings to add clear : clear existing value of parameter

func (*Parameters) StandardKeys

func (params *Parameters) StandardKeys() (keys []string)

StandardKeys - list of standard parameters names (keys)

func (*Parameters) StringParameter

func (params *Parameters) StringParameter(pname string, sep string) string

StringParameter return parameter as string concatenated with sep

type ReqRespContext

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

ReqRespContext ReqRespContext

type Request

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

Request Request

func (*Request) Header

func (reqst *Request) Header(name string) (val string)

Header Request Header

type RequestResponseMethodHandle

type RequestResponseMethodHandle = func(*Servlet, *Request, *Response) error

RequestResponseMethodHandle RequestResponseMethodHandle

type Response

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

Response Response

func (*Response) AddHeader

func (resp *Response) AddHeader(name string, value string)

AddHeader Response

func (*Response) FlushResponseHeader

func (resp *Response) FlushResponseHeader(status int) (err error)

FlushResponseHeader Flush Response Header

func (*Response) Print

func (resp *Response) Print(a ...interface{}) (n int, err error)

Print -. conveniant method that works the same as fmt.Fprint but writing to Response.w

func (*Response) Println

func (resp *Response) Println(a ...interface{}) (n int, err error)

Println -. conveniant method that works the same as fmt.Fprint but writing to Response.w

func (*Response) SetHeader

func (resp *Response) SetHeader(name string, value string)

SetHeader Response

type Servlet

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

Servlet Servlet

func NewServlet

func NewServlet(srvltcntxt *ServletContext, a ...interface{}) (srvlt *Servlet)

NewServlet NewServlet

type ServletContext

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

ServletContext ServletContext

func RegisterServletContextPath

func RegisterServletContextPath(contextpah string, physicalpath string, a ...interface{}) (srvltcntxt *ServletContext)

RegisterServletContextPath RegisterServletContextPath

func RegisteredServletContext

func RegisteredServletContext(contextpath string) (srvltcntxt *ServletContext)

RegisteredServletContext RegisteredServletContext

func (*ServletContext) RegisterServlet

func (srvltcntxt *ServletContext) RegisterServlet(srvletpath string, a interface{}, amethods ...interface{}) (srvlt *Servlet)

RegisterServlet RegisterServlet

type Widget

type Widget interface {
	goio.Printer
	CleanupWidget()
	WidgetMarkupHandle(...string) func() io.Reader
	DefaultMarkupHandle() func() io.Reader
	CallFunc(funcname string, a ...interface{}) (err error)
}

Widget Widget

func InvokeWidgetByHandle

func InvokeWidgetByHandle(wdgtinvhandle func(*WidgetBroker) Widget, wdgtbrkr *WidgetBroker) (wdgt Widget)

InvokeWidgetByHandle InvokeWidgetByHandle

type WidgetBroker

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

WidgetBroker WidgetBroker

func (*WidgetBroker) AbsolutePath

func (wdgtbrkr *WidgetBroker) AbsolutePath() (abslutpath string)

AbsolutePath AbsolutePath

func (*WidgetBroker) AppendNextRequest

func (wdgtbrkr *WidgetBroker) AppendNextRequest(nextrequest ...string)

AppendNextRequest AppendNextRequest

func (*WidgetBroker) Parameters

func (wdgtbrkr *WidgetBroker) Parameters() (params *Parameters)

Parameters Parameters

func (*WidgetBroker) Print

func (wdgtbrkr *WidgetBroker) Print(a ...interface{}) (n int, err error)

Print Print

func (*WidgetBroker) Println

func (wdgtbrkr *WidgetBroker) Println(a ...interface{}) (n int, err error)

Println Println

func (*WidgetBroker) Query

func (wdgtbrkr *WidgetBroker) Query(dbalias string, query string) (dbquery *godbc.DBQuery)

Query Query

func (*WidgetBroker) Request

func (wdgtbrkr *WidgetBroker) Request() *Request

Request Request

func (*WidgetBroker) Response

func (wdgtbrkr *WidgetBroker) Response() *Response

Response Response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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