Versions in this module Expand all Collapse all v1 v1.0.5 Jun 8, 2024 v1.0.4 Jun 8, 2024 v1.0.3 Jun 8, 2024 v1.0.2 Jun 1, 2024 Changes in this version + const AUTO_HEADER_SET_BY + const BODY_JSON + const BODY_PARAM_PREFIX + const BODY_STRING + const BODY_STRING_ARRAY_MAP + const BODY_STRING_MAP + const DoNotShowPlaceInfo + const ENCODED_HOST_PORT_URL_PARAM + const ErrorPolicy + const HEADERS_RESPONSE + const HeadersAddToList + const HeadersSetOrigin + const HeadersSetOriginAlways + const LogHandled + const LogLevelFull + const LogLevelFullInput + const LogLevelInputURL + const LogLevelNone + const PARALLEL_MODE_SIMPLE + const PARALLEL_MODE_SSE + const PARALLEL_MODE_WS + const REQUEST_METHOD + const REQUEST_URI + const REQUEST_URL_PARAMS + const STAGE_MODE_END + const STAGE_MODE_MIDDLE + const STAGE_MODE_START + const ServerSessionStoringKey + const UrlIncludeOption_HostFirst + const UrlIncludeOption_HostWithoutPort + const UrlIncludeOption_PredefinedHostOnly + const UrlPathPrefix + var DefaultRequestErrorPolicy = &RequestErrorPolicy + func GetPurePath(path string) string + func GetUniqueId() int64 + func HandleError(request *RequestContext, message string) + func HandlerError(w http.ResponseWriter, r *http.Request, message string) + func HandlerOk(w http.ResponseWriter, r *http.Request, message string) + func MatchByContainMap(src []byte, containMap map[byte]int) bool + func PrepareValidatePattern(pattern *ValidatePattern, defContainMap map[byte]int, ...) error + func ProvideHeaders(preHeaders map[string][]string, postHeaders map[string][]string, origin string, ...) + func Send(w http.ResponseWriter, r *http.Request, message []byte) + func SetRecordMode(path string) + type ActionPolicy struct + LogFirstTimes int + LogNextTime int + type DatabaseConfig struct + Name string + Root string + Tables []*DatabaseTable + WebRoot string + type DatabaseTable struct + AllowCustomId bool + KeyFirst string + Kind string + Name string + Version string + Web string + WebField string + WebFileName string + WebFormats string + type DvAction struct + Auth string + Body map[string]string + Conditions map[string]string + Definitions map[string]string + ErrorPolicy string + InnerParams string + LogPolicy string + Method string + Name string + QueryParams map[string]string + Result string + ResultMode string + Roles string + Session *SessionActionRequest + SseWs *SSEWSControl + Typ string + Url string + Validations []*ValidatePattern + func (action *DvAction) CloneFrom(other *DvAction) + type HandlerFunc func(request *RequestContext) bool + type InterfaceExecutor func(*RequestContext, interface{}) interface + type MaskInfo struct + FixedEnd string + FixedStart string + IsCaseInsensitive int + IsNegative bool + Middle []*MaskInfoPart + type MaskInfoPart struct + Condition string + Data string + Kind MaskKind + Max int + Min int + Regex *regexp.Regexp + type MaskKind int + const MaskCondition + const MaskRegExp + const MaskSlashAware + const MaskSlashUnaware + const MaskWord + type MicroCoreHeaderAttribute struct + Imap map[string]int + Kind int + List []string + Plain string + type MicroCoreInfo struct + ActionHandler HandlerFunc + ActionPolicies map[string]*ActionPolicy + BaseFolderUrl string + BaseFolderUsed bool + BaseProcessorBlocks []ProcessorBlock + BaseProviderBlocks []ProcessorBlock + BaseRewrite RewriteMap + Client *http.Client + DirectoryIndex []string + DomainName string + ErrorPolicies map[string]*RequestErrorPolicy + ExtraStaticServer bool + HasProxyServers bool + HeadersProxyServer map[string][]string + HeadersProxyServerOptions map[string][]string + HeadersSpecial map[string]MicroCoreHeaderAttribute + HeadersSpecialOptions map[string]MicroCoreHeaderAttribute + HeadersSpecialStatic map[string]MicroCoreHeaderAttribute + HeadersStatic map[string][]string + HeadersStaticOptions map[string][]string + HostHeader string + LogLevel int + ModuleHandler HandlerFunc + PostProcessorBlocks []ProcessorBlock + ProxyName string + ProxyServerHttp bool + ProxyServerMap map[string]string + ProxyServerSettings ServerSettings + ProxyServerUrl string + ProxyServers []*ProxyServerBlock + SecurityInfo *SecurityServerInfo + ServerRewrite RewriteMap + Session ServerSessionProvider + UrlIncludeOption int + type ParallelExecutionControl struct + Flusher http.Flusher + Value interface{} + type ParallelProcessing struct + IntervalTimeUnit float32 + type ProcessorBlock struct + Data map[string]string + EndPointHandler ProcessorEndPointHandler + Name string + Urls []*MaskInfo + type ProcessorEndPointHandler func(request *RequestContext) bool + type ProxyServerBlock struct + FilterUrls []*MaskInfo + RewritePoint int + RewritePrefix string + ServerUrl string + type RequestContext struct + Action *DvAction + DataType string + Error error + ExecutorFn InterfaceExecutor + Extra map[string]interface{} + FileName string + Headers map[string][]string + Id int64 + Input []byte + InputJson interface{} + InputStr string + LocalContextEnvironment *dvevaluation.DvObject + LogLevel int + Output []byte + ParallelExecution *ParallelExecutionControl + Params map[string]string + PlaceInfo string + PrimaryContextEnvironment *dvevaluation.DvObject + Queries map[string]string + Reader *http.Request + Server *MicroCoreInfo + Session RequestSession + StatusCode int + TempFiles []string + Url string + UrlInlineParams map[string]string + Urls []string + UrlsLowerCase []string + Writer http.ResponseWriter + func (ctx *RequestContext) AddTempFile(name string) + func (ctx *RequestContext) CleanUpRequest() + func (ctx *RequestContext) GetCurrentErrorPolicy() *RequestErrorPolicy + func (ctx *RequestContext) GetEnvironment() *dvevaluation.DvObject + func (ctx *RequestContext) GetUrlInlineParameter(param string) string + func (ctx *RequestContext) GetUrlParameter(param string) string + func (ctx *RequestContext) HandleFileNotFound() + func (ctx *RequestContext) HandleHttpError(statusCode int) + func (ctx *RequestContext) HandleInternalServerError() + func (ctx *RequestContext) SetError(err error) + func (ctx *RequestContext) SetErrorMessage(message string) + func (ctx *RequestContext) SetHeaderArray(key string, val []string) + func (ctx *RequestContext) SetHeaderUnique(key string, val string) + func (ctx *RequestContext) SetHttpErrorCode(errorCode int, message string) + func (ctx *RequestContext) SetUrlInlineParameters(params map[string]string) + func (ctx *RequestContext) StoreStoringSession() + func (request *RequestContext) GetContentType() string + func (request *RequestContext) HandleCommunication() + type RequestErrorPolicy struct + ContentType string + Format string + FormatForced bool + Name string + type RequestSession interface + Clear func() + GetId func() string + GetItem func(key string) interface{} + Keys func() []string + RemoveItem func(key string) + SetItem func(key string, value interface{}) + Values func() map[string]interface{} + type RewriteMap map[string][]*RewriteMapItem + type RewriteMapItem struct + Full bool + Src string + Url string + UrlLen int + type SSEChange struct + ActionCheck string + ActionCheckVar string + ActionFull string + ActionFullResult string + Places []string + type SSEWSControl struct + Change *SSEChange + End *Stage + HeartBeat int + Interval int + Mid *Stage + ServeMidAtStart bool + Start *Stage + TimeOut int + type SecurityServerInfo struct + RolePrefix string + SuperAdminRoles []string + type ServerSessionProvider interface + GetSessionStorage func(ctx *RequestContext, request *SessionActionRequest, sessionId string) (RequestSession, error) + type ServerSettings struct + DisableCompression bool + DisableKeepAlives bool + ExpectContinueTimeout int + IdleConnTimeout int + MaxIdleConns int + MaxIdleConnsPerHost int + ResponseHeaderTimeout int + type SessionActionRequest struct + Id []string + Option string + Prefix string + type Stage struct + Action string + Condition string + Result string + type ValidatePattern struct + Contains string + EmptyMessage string + Message string + RegPattern string + Source string + func (pattern *ValidatePattern) Match(src string) string + func (pattern *ValidatePattern) MatchByCompiledPattern(src string) string