Documentation ¶
Index ¶
- func ActiveContent(out goio.Printer, contentName string, a ...interface{})
- func ActiveScript(out goio.Printer, a ...interface{})
- func Elem(out goio.Printer, elemName string, a ...interface{})
- func EndActiveContent(out goio.Printer, contentName string)
- func EndActiveScript(out goio.Printer)
- func EndElem(out goio.Printer, elemName string)
- func MimetypesTSV() io.Reader
- func PerformHTTPServletRequest(w http.ResponseWriter, r *http.Request)
- func PerformServletRequest(w io.Writer, r io.Reader)
- func PrintProperties(out goio.Printer, parenthasis string, props ...interface{})
- func RegisterEmbededReader(path string, readerhndl func() io.Reader)
- func RegisterEmbededReaders(a ...interface{})
- func RegisterWidget(path string, widgetname string, widgetinvokehndle func(*WidgetBroker) Widget, ...)
- func RegisterWidgetPath(path string, a ...interface{})
- func RegisteredEmbededReader(path string) (readerhndl func() io.Reader)
- func SearchWidgetInvokeHandle(wdgtpath string) (wdgtinvhandle func(*WidgetBroker) Widget, wdgtname string, actionpath string)
- func ServletGET(servlet *Servlet, request *Request, response *Response) (err error)
- func ServletPOST(servlet *Servlet, request *Request, response *Response) (err error)
- func SingleElem(out goio.Printer, elemName string, props ...interface{})
- func SplitPropsIntoFuncAndProps(propstosplit ...interface{}) (props []interface{}, funcs []func())
- func StartActiveContent(out goio.Printer, contentName string)
- func StartActiveScript(out goio.Printer)
- func StartElem(out goio.Printer, elemName string, props ...interface{})
- type ActiveReader
- type BaseWidget
- func (bsewdgt *BaseWidget) Broker() *WidgetBroker
- func (bsewdgt *BaseWidget) CallFunc(funcname string, a ...interface{}) (err error)
- func (bsewdgt *BaseWidget) CleanupWidget()
- func (bsewdgt *BaseWidget) DefaultMarkupHandle() func() io.Reader
- func (bsewdgt *BaseWidget) DefaultWidgetMarkupHandle(wdgtmrkphndl func() io.Reader)
- func (bsewdgt *BaseWidget) MapWidgetFunction(funcname string, funcimpl interface{}, a ...interface{})
- func (bsewdgt *BaseWidget) Print(a ...interface{}) (int, error)
- func (bsewdgt *BaseWidget) Println(a ...interface{}) (int, error)
- func (bsewdgt *BaseWidget) WidgetMarkupHandle(funcname ...string) (wdgtmrkphndl func() io.Reader)
- type Parameters
- func (params *Parameters) CleanupParameters()
- func (params *Parameters) ContainsFileParameter(pname string) bool
- func (params *Parameters) ContainsParameter(pname string) bool
- func (params *Parameters) FileKeys() (keys []string)
- func (params *Parameters) FileParameter(pname string) []interface{}
- func (params *Parameters) Parameter(pname string) []string
- func (params *Parameters) RemoveParameter(pname string) (value []string)
- func (params *Parameters) SetFileParameter(pname string, clear bool, pfile ...interface{})
- func (params *Parameters) SetParameter(pname string, clear bool, pvalue ...string)
- func (params *Parameters) StandardKeys() (keys []string)
- func (params *Parameters) StringParameter(pname string, sep string) string
- type ReqRespContext
- type Request
- type RequestResponseMethodHandle
- type Response
- func (resp *Response) AddHeader(name string, value string)
- func (resp *Response) FlushResponseHeader(status int) (err error)
- func (resp *Response) Print(a ...interface{}) (n int, err error)
- func (resp *Response) Println(a ...interface{}) (n int, err error)
- func (resp *Response) SetHeader(name string, value string)
- type Servlet
- type ServletContext
- type Widget
- type WidgetBroker
- func (wdgtbrkr *WidgetBroker) AbsolutePath() (abslutpath string)
- func (wdgtbrkr *WidgetBroker) AppendNextRequest(nextrequest ...string)
- func (wdgtbrkr *WidgetBroker) Parameters() (params *Parameters)
- func (wdgtbrkr *WidgetBroker) Print(a ...interface{}) (n int, err error)
- func (wdgtbrkr *WidgetBroker) Println(a ...interface{}) (n int, err error)
- func (wdgtbrkr *WidgetBroker) Query(dbalias string, query string) (dbquery *godbc.DBQuery)
- func (wdgtbrkr *WidgetBroker) Request() *Request
- func (wdgtbrkr *WidgetBroker) Response() *Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveContent ¶
ActiveContent - to be used with webactions.js embedded resource
func ActiveScript ¶
ActiveScript - to be used with webactions.js embedded resource
func EndActiveContent ¶
EndActiveContent - to be used with webactions.js embedded resource
func EndActiveScript ¶
EndActiveScript - to be used with webactions.js embedded resource
func PerformHTTPServletRequest ¶
func PerformHTTPServletRequest(w http.ResponseWriter, r *http.Request)
PerformHTTPServletRequest PerformHttpServletRequest
func PerformServletRequest ¶
PerformServletRequest PerformServletRequest
func PrintProperties ¶
PrintProperties PrintProperties
func RegisterEmbededReader ¶
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 ¶
RegisteredEmbededReader RegisteredEmbededReader
func SearchWidgetInvokeHandle ¶
func SearchWidgetInvokeHandle(wdgtpath string) (wdgtinvhandle func(*WidgetBroker) Widget, wdgtname string, actionpath string)
SearchWidgetInvokeHandle SearchWidgetInvokeHandle
func ServletGET ¶
ServletGET ServletGET
func ServletPOST ¶
ServletPOST ServletPOST
func SingleElem ¶
SingleElem SingleElem
func SplitPropsIntoFuncAndProps ¶
func SplitPropsIntoFuncAndProps(propstosplit ...interface{}) (props []interface{}, funcs []func())
SplitPropsIntoFuncAndProps SplitPropsIntoFuncAndProps
func StartActiveContent ¶
StartActiveContent - to be used with webactions.js embedded resource
func StartActiveScript ¶
StartActiveScript - to be used with webactions.js embedded resource
Types ¶
type ActiveReader ¶
type ActiveReader struct {
// contains filtered or unexported fields
}
ActiveReader ActiveReader
func (*ActiveReader) FlushContent ¶
func (atvr *ActiveReader) FlushContent(cntntstarti int64, cntntendi int64)
FlushContent FlushContent
type BaseWidget ¶
BaseWidget BaseWidget
func NewBaseWidget ¶
func NewBaseWidget(wdgtbrkr *WidgetBroker) (bsewdgt *BaseWidget)
NewBaseWidget NewBaseWidget
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 RequestResponseMethodHandle ¶
RequestResponseMethodHandle RequestResponseMethodHandle
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response Response
func (*Response) FlushResponseHeader ¶
FlushResponseHeader Flush Response Header
func (*Response) Print ¶
Print -. conveniant method that works the same as fmt.Fprint but writing to Response.w
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) Response ¶
func (wdgtbrkr *WidgetBroker) Response() *Response
Response Response