Versions in this module Expand all Collapse all v0 v0.1.43 Sep 10, 2021 v0.1.42 Sep 8, 2021 Changes in this version + var DB *sql.DB + var Db8_rr = false + var Db8_vd = false + var DbFlag = make(map[string]bool) + var DbType = "Postgres" + var DefaultServeMux = &defaultServeMux + var FirstRequest bool = true + var LastResut []byte + var MuxMatchTypeMap = map[string]MuxMatchType + var PrePostTab = map[string]PrePostFx + var PwCache = "./pw-cache/%s/%s" + var QueryConfig = []CrudQueryConfig + var SaveValueMux *sync.Mutex + var StoredProcConfig = []CrudStoredProcConfig + var TableConfig = []CrudConfig + var ThisEpoc int + var TimeRemain int + var UploadPath string + func AbsFloat64(a float64) float64 + func AddMatchFunc(name string, fx MatchFunc) + func AddToPrePostTab(name string, fx PrePostFx) + func AddValidationFunction(name string, fx ValidationFunction) + func AppendBulkConfig(BulkConfig CrudBulkConfig) + func AppendConfig(sp []CrudStoredProcConfig, tp []CrudConfig, qp []CrudQueryConfig) + func Assert(b bool) + func BindFixer(stmt string, vars []interface{}) (modStmt string, modVars []interface{}, names []string) + func BoolToYesNo(b bool) string + func CallStoredProc(DB *sql.DB, name string, args ...interface{}) (rv map[string]interface{}, raw string, err error) + func CheckJQueryHeaders(www http.ResponseWriter, req *http.Request) (err error) + func CheckPassword(pw string, db_flag map[string]bool, ignore bool) bool + func CheckPriv(auth_token, user_id, needs_priv string) (rv bool) + func CheckTable(DbSchema, TableName string) (err error) + func CleanPath(p string) string + func CleanupValue(www http.ResponseWriter, req *http.Request) + func ConnectToPG(gCfg *BaseConfigType) *sql.DB + func Contains(lookFor, has []string) (missing []string, allFound bool) + func ConvertDataToImage(data, fn string) (err error) + func CsvUnmarshal(in string) (rv []map[string]string, colNames []string, err error) + func DebugFlagProcess(DbFlag *string, db_flag map[string]bool, gCfg *BaseConfigType) + func DecryptText(key, text []byte) ([]byte, error) + func DumpStoredProcDefs() + func EncodeBase36(idBase36 string) (idOut string, err error) + func EncodeFromBase10to36(idBase10 string) (idOut string, err error) + func EncodeMuxMatchTypeToString(ww MuxMatchType) (ss string) + func EncryptText(key, text []byte) ([]byte, error) + func EncryptTextIndexable(key, xiv, text []byte) ([]byte, error) + func EncryptTextToB64(key, text []byte) string + func EncryptTextToB64Indexable(key, iv, text []byte) string + func ErrorReturn(www http.ResponseWriter, req *http.Request, logFilePtr *os.File, ...) + func ErrorReturnGoRoutine(www http.ResponseWriter, req *http.Request, logFilePtr *os.File, ...) + func ExcelUnmarshal(excelFileName string, sheetIndex int) (rv []map[string]string, err error) + func ExecuteATemplateByName(tmpl, tmplName string, data interface{}) (rv string) + func ExecuteATemplateByNameWithError(tmpl, tmplName, tmplIfNotFound string, data interface{}) (rv string, err error) + func FindDataType(colName string, colTypes []CrudColTypeData) (dt string, found bool) + func FlushPrivCache() + func FormatBool(b bool) (s string) + func FoundCol(www http.ResponseWriter, req *http.Request, WhereCols []string) (cols []string, colsData []interface{}, found bool) + func GenBindArray(Bind []string, gdata map[string]interface{}, row map[string]string) (inputData []interface{}, needBind bool) + func GenOrderBy(www http.ResponseWriter, req *http.Request, CrudData CrudConfig, ...) (rv string, err error) + func GenProjected(ProjectedCols []string) (rv string) + func GenQryFromCli() (rv string) + func GenRandBytesOracle() (buf []byte, ttl, epoc int, err error) + func GenUUID() string + func GenWhere(cols []string) string + func GeneralSetup(gg *BaseConfigType) + func GenerateCallStoredProc(filename, pkgName string) + func GetAllStoredProcNames() (rv []string) + func GetAuthToVerify(www http.ResponseWriter, req *http.Request) (TokToVerify string) + func GetBearer(www http.ResponseWriter, req *http.Request, db_flag map[string]bool) (rv string) + func GetColumnMap(DbSchema, TableName string) (cm map[string]bool, err error) + func GetDB() *sql.DB + func GetInsertNames(www http.ResponseWriter, req *http.Request, potentialCols []string, ...) (cols, vals string, inputData []interface{}, id string, err error) + func GetInsertNamesMulti(www http.ResponseWriter, req *http.Request, pos int, aMd map[string]string, ...) (cols, vals string, inputData []interface{}, id string, err error) + func GetNameList(www http.ResponseWriter, req *http.Request) (names []string) + func GetNameListFromSave(www http.ResponseWriter, req *http.Request) (names []string) + func GetQueryNames(www http.ResponseWriter, req *http.Request, potentialCols []ParamListItem, ...) (inputData []interface{}, err error) + func GetStoredProcNames(www http.ResponseWriter, req *http.Request, potentialCols []ParamListItem, ...) (vals string, inputData []interface{}, err error) + func GetTypeCode(ty string) (rv string) + func GetUpdateNames(www http.ResponseWriter, req *http.Request, potentialCols []string, ...) (updCols string, inputData []interface{}, id string, err error) + func GetUpdateNamesMulti(www http.ResponseWriter, req *http.Request, pos int, aMd map[string]string, ...) (updCols string, inputData []interface{}, id string, err error) + func GetUserId(auth_token string) (user_id string, err error) + func GetValueFromSave(www http.ResponseWriter, req *http.Request, name string) (found bool, val string) + func GetVar(name string, www http.ResponseWriter, req *http.Request) (found bool, value string) + func GetVarDflt(name string, www http.ResponseWriter, req *http.Request, dflt string) (found bool, value string) + func HalfLifeDecay(startValue float64, timeSpanInSeconds float64, halfLifeInSeconds float64) float64 + func Handle(pattern string, handler http.Handler) + func HandleCRUDConfig(www http.ResponseWriter, req *http.Request, CrudData CrudConfig, ...) + func HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) + func HandleQueryConfig(www http.ResponseWriter, req *http.Request, QueryData CrudQueryConfig, ...) + func HandleStoredProcedureConfig(www http.ResponseWriter, req *http.Request, SPData CrudStoredProcConfig, ...) + func HandleTables(mux *ServeMux, gCfg *BaseConfigType) + func HasOrderByList(www http.ResponseWriter, req *http.Request) bool + func HasPageLimit(www http.ResponseWriter, req *http.Request) bool + func HasPort(s string) bool + func HashFile(file_name string) (file_hash string, err error) + func HaveRow(stmt, id string) bool + func HexEscapeNonASCII(s string) string + func HtmlEscapeUrl(s string) string + func InArray(lookFor string, inArr []string) bool + func InArrayInt(lookFor int, inArr []int) bool + func InArrayStr(lookFor string, inArr []string) bool + func InArrayStrN(lookFor string, inArr []string) int + func InsertBuild(stmt string, vars ...interface{}) (out_stmt string, data []interface{}) + func Is1DollarGlobal(NameList []string) bool + func Is2DollarGlobal(NameList []string) bool + func IsANumber(s string, www http.ResponseWriter, req *http.Request) (nv int, err error) + func IsAuthKeyValid(www http.ResponseWriter, req *http.Request, gCfg *BaseConfigType) bool + func IsAuthorized(www http.ResponseWriter, req *http.Request) (err error) + func IsBool(s string) (ok bool) + func IsHexNumber(s string) (ok bool) + func IsInArray(aName string, names []string) bool + func IsInDemoMode(gCfg *BaseConfigType) bool + func IsInDemoModeCompoent(gCfg *BaseConfigType, c string) bool + func IsIntString(s string) bool + func IsJWTValid(www http.ResponseWriter, req *http.Request, db_flag map[string]bool, ...) bool + func IsNumber(s string) (ok bool) + func IsTLS(req *http.Request) bool + func IsTLSUrl(hp string) bool + func JsonEscQuote(s string) string + func JsonResponse(www http.ResponseWriter, code int, message string) + func KeysFromMap(a interface{}) (keys []string) + func LenOfMatch(matchTo []MuxMatchItem) int + func LiveMonSetup(name string, db_flag map[string]bool, logFile *os.File, gCfg *BaseConfigType) + func LogFile(f *os.File) + func LoggingSetup(gg *BaseConfigType) (f *os.File) + func MatchOthersRRToMatcher(www http.ResponseWriter, req *http.Request, matchOthers *MuxRREntry) (ok bool) + func MatchOthersToMatcher(www http.ResponseWriter, req *http.Request, matchOthers *MuxEntry) (ok bool) + func MatchURIToMatcher(www http.ResponseWriter, req *http.Request, mm []string, ...) (ok bool) + func MaxFloat64(a, b float64) float64 + func MethodReplace(www http.ResponseWriter, req *http.Request, db_flag map[string]bool) (methodOut string) + func MinFloat64(a, b float64) float64 + func MultiData(www http.ResponseWriter, req *http.Request) (raw string, found bool) + func MultiInsertUpdate(www http.ResponseWriter, req *http.Request, CrudData CrudConfig, raw string, ...) + func NameTransform(URIPath string) (rv string) + func NonNull(listCols []string, row map[string]interface{}) (rv []interface{}, nonNullFlag bool) + func OneSecondDispatch() + func PGCheckStoredProcedureNameParams(fd PGProc) (err error) + func PGCheckTableColumns(tab PGTable) (err error) + func ParseBool(s string) (b bool) + func ParseDoc(doc []byte, tag string) (name, desc string) + func ParseYN(s string) (b bool) + func ParserOrderBy(val string, www http.ResponseWriter, req *http.Request, CrudData CrudConfig, ...) (p, e []string) + func Ping() string + func ReadCRUDConfiFile(fn string) error + func Redirect(w http.ResponseWriter, r *http.Request, url string, code int) + func RedisClient(db_flag map[string]bool, gCfg *BaseConfigType) (client *redis.Client, conFlag bool) + func RemoveEmptyPort(host string) string + func RenderIndexHTMLWithToken(www http.ResponseWriter, req *http.Request) + func RmZero(s string) (r string) + func Round(input float64) float64 + func RoundToPennies(f float64) float64 + func RunPostFunctions(www http.ResponseWriter, req *http.Request, SPData CrudBaseConfig, ...) (outData string, err error) + func RunPreFunctions(www http.ResponseWriter, req *http.Request, SPData CrudBaseConfig, ...) (err error) + func RunTemplate(TemplateFn string, name_of string, g_data map[string]interface{}) string + func RunTemplateInline(TemplateBody string, g_data map[string]interface{}) string + func RunTemplateInlineString(TemplateBody string, g_data map[string]string) string + func RunTemplateString(TemplateFn string, name_of string, g_data map[string]string) string + func SQLDelete(stmt string, data ...interface{}) (err error) + func SQLDeleteDB(DB *sql.DB, stmt string, data ...interface{}) (nd int, err error) + func SQLExec(stmt string, data ...interface{}) (resultSet sql.Result, err error) + func SQLExecDB(DB *sql.DB, stmt string, data ...interface{}) (resultSet sql.Result, err error) + func SQLInsert(stmt string, data ...interface{}) (err error) + func SQLInsertDB(DB *sql.DB, stmt string, data ...interface{}) (ni int, err error) + func SQLQuery(stmt string, data ...interface{}) (resultSet *sql.Rows, err error) + func SQLQueryDB(DB *sql.DB, stmt string, data ...interface{}) (resultSet *sql.Rows, err error) + func SQLQueryRow(stmt string, data ...interface{}) (aRow *sql.Row) + func SQLQueryRowDB(DB *sql.DB, stmt string, data ...interface{}) (aRow *sql.Row) + func SQLSelect(stmt string, data ...interface{}) (resultSet *sql.Rows, err error) + func SQLSelectDB(DB *sql.DB, stmt string, data ...interface{}) (resultSet *sql.Rows, err error) + func SQLSelectRow(stmt string, data ...interface{}) (aRow *sql.Row) + func SQLSelectRowDB(DB *sql.DB, stmt string, data ...interface{}) (aRow *sql.Row) + func SQLUpdate(stmt string, data ...interface{}) (nr int, err error) + func SQLUpdateDB(DB *sql.DB, stmt string, data ...interface{}) (nr int, err error) + func SaveConfigToDB(items []SaveConfigItemType) (err error) + func SecureRandomAlphaString(length int) (rstr string, err error) + func SecureRandomBytes(length int) (bts []byte, err error) + func SendKick() + func SendTimeout() + func SetCliOpts(cc *string, ss []string) + func SetDbFlag(d map[string]bool) + func SetDbType(s string) + func SetJsonHdr(www http.ResponseWriter, req *http.Request) + func SetJsonPHdr(www http.ResponseWriter, req *http.Request) + func SetValue(www http.ResponseWriter, req *http.Request, name, value string) + func SetupBulkAPI(mux *ServeMux, gCfg *BaseConfigType, upload_path string) + func SetupCrud(f *os.File, d map[string]bool) + func SetupDescHtml(mux *ServeMux) + func SetupProcCheck() + func Sha1String(s string) []byte + func SplitURI(uri string) (result []string) + func SplitWithEsc(ss string, sep byte, stop byte) (rv []string) + func Start1SecTimer() + func StripHostPort(h string) string + func TLSSetup(TLS_crt, TLS_key *string, gCfg *BaseConfigType) bool + func TemplateProcessInputData(inputData *CrudBulkFileFormat, colNames []string, www http.ResponseWriter, ...) (err error) + func TestConnectToDB() + func TestSetLogFilePtr() + func UpdateBuild(stmt string, npk int, vars ...interface{}) (out_stmt string, data []interface{}) + func ValidEmailAddress(em string, data interface{}, data2 []string) bool + func ValidInList(em string, data interface{}, data2 []string) bool + func ValidInListQry(em string, data interface{}, dataX []string) bool + func ValidList(em string, data interface{}, data2 []string) bool + func ValidListInsensitive(em string, data interface{}, data2 []string) bool + func ValidUSZip(em string, data interface{}, data2 []string) bool + func ValidateAuthToken(www http.ResponseWriter, req *http.Request, auth_token string, ...) (tokenValid bool) + func ValidateCSRFTokenJwtToken(CsrfToken string, www http.ResponseWriter, req *http.Request) bool + func ValidateStoredProcs(sp []CrudStoredProcConfig) + func ValidateTemplateHas(TemplateFn string, nameSet []string) (err error) + func ValidateTemplates(fns ...string) (rv bool) + func VerifyToken(tokData []byte, keyFile string, db_flag map[string]bool, gCfg *BaseConfigType) (iat string, err error) + func YearsToSeconds(yr float64) (sec float64) + type AValue map[string]string + type BaseConfigType struct + AppliationMainPage string + Auth2faAppNoEmail string + Auth2faEnabled string + Auth2faSetupApp string + AuthApplicationName string + AuthEmailConfirm string + AuthJWTKeyType string + AuthJWTPrivate string + AuthJWTPublic string + AuthJWTSource string + AuthKey string + AuthLoginOnRegister string + AuthMethod string + AuthQrURL string + AuthRealm string + AuthRedirect2faSetupPage string + AuthSelfURL string + AuthTokenLifetime int + AuthTokenURI string + AuthTokenValidate string + BaseServerUrl string + BusinessAuthToken string + CSRF_Token string + CachForPwned string + DBConnectString string + DBHost string + DBName string + DBPassword string + DBPort int + DBSSLMode string + DBUser string + DB_Enc_Key string + DB_IV_Data string + DebugFlag string + DemoFlag string + DescHtmlTemplate string + DocMdFile string + EmailFromAddress string + EmailFromName string + EmailRegistrationToken string + EmailTmplDir string + ImmediateLoginOnRegister string + JWTUsed bool + JWT_Ecdsa string + JWT_KeyFile string + JWT_RSA string + LogFileEncryptionKey string + LogFileName string + PasswordResetPage string + RFC6238_2fa_NDigits int + RFC6238_2fa_on string + RFC6238_QR_TTL int + RFC6238_RedisKey string + RandomOracleURL string + RedisConnectAuth string + RedisConnectHost string + RedisConnectPort string + RemoteAuthGetTokenInfo string + RemoteAuthKey string + RemoteAuthServer string + RemoteAuthTTL int + S3_bucket string + S3_region string + StaticPath string + Status string + TLS_crt string + TLS_key string + TemplateDir string + TemplatedFiles string + TickerSeconds int + URL__Auth__Register string + URL__JWT__Validate string + Use14DayCookie string + UseEmailConfirm string + UseRegistrationToken string + UseRolePriv string + UseTOTPSkew int + type BodyConfig struct + ColumnName string + ColumnPos int + type ContextType struct + Value map[*http.Request]AValue + var SaveValue ContextType + type CrudBaseConfig struct + AuthKey bool + AuthPrivs []string + DocTag string + FileWhereDefined string + InputList []*MuxInput + JWTKey bool + MultiRowReturn bool + MuxName string + NoDoc bool + NoValidate bool + ParameterList []ParamListItem + PostConfig []string + PostProc []string + PreConfig []string + PreProc []string + ProcReturnValue []ProcReturnValueSet + RawDataType string + TableNameList []string + URIPath string + type CrudBulkAllowed struct + APIEndpoint string + AuthPrivs []string + AuthReq bool + DocTag string + GlobalData []CrudBulkGloalConfig + Method []string + NoDoc bool + type CrudBulkConfig struct + BulkAPIAllowed []CrudBulkAllowed + type CrudBulkFileFormat struct + APIEndPoint string + APIMethod string + Params []CrudBulkParam + type CrudBulkGloalConfig struct + Bind []string + InsertBind []string + InsertStmt string + NameList []string + Required bool + Stmt string + type CrudBulkParam map[string]string + type CrudBulkReturnFormat struct + PerRowStatus []CurdBulkReturnMsg + Status string + type CrudColTypeData struct + Name string + Type string + type CrudConfig struct + ColsTypes []CrudColTypeData + DeleteAuthPrivs []string + InsertAuthPrivs []string + InsertCols []string + InsertPkCol string + MethodsAllowed []string + OrderByCols []string + PKUKList [][]string + ProjectedCols []string + SelectAuthPrivs []string + SelectRequiresWhere bool + TableName string + UpdateAuthPrivs []string + UpdateCols []string + UpdatePkCol string + WhereCols []string + type CrudQueryConfig struct + BodyInfo []BodyConfig + HeaderInfo []HeaderConfig + IsDelete bool + IsInsert bool + IsUpdate bool + PrimayTableName string + QueryString string + SubQuery []CrudSubQueryConfig + type CrudStoredProcConfig struct + StoredProcedureName string + func GetStoredProcDefinition(name string) (rv CrudStoredProcConfig, err error) + type CrudSubQueryConfig struct + BindValues []string + BodyInfo []BodyConfig + HeaderInfo []HeaderConfig + PrimayTableName string + QueryTmpl string + SubQuery []CrudSubQueryConfig + To string + type CurdBulkReturnMsg struct + Msg string + Nth int + RespData string + Status int + type DbColumnsType struct + ColumnName string + DBType string + TypeCode string + type DbTableType struct + DbColumns []DbColumnsType + TableName string + func GetFunctionInformationSchema(FunctionName string, DbSchema string) (rv DbTableType, err error) + type GetStatusType struct + HttpStatusCode int + Msg string + Status string + type HeaderConfig struct + ColumnName string + ColumnPos int + ColumnTitle string + type InjectList struct + Name string + ParamName string + Value string + type InvalidInputType struct + Err error + Mux *ServeMux + Pos int + func (ih *InvalidInputType) ServeHTTP(www http.ResponseWriter, req *http.Request) + type MatchFunc func(www http.ResponseWriter, req *http.Request, path string) bool + type MultiRv struct + Id string + Msg string + RowNum int + Status string + type MuxAdditionalCriteria struct + func (mm *MuxAdditionalCriteria) AuthPotentiallyRequired() *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) AuthPrivs(p ...string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) AuthRequired() *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Desc(s string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) DocTag(s string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Func(fx MatchFunc) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Host(name ...string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Inputs(ip []*MuxInput) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Method(mt ...string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) MultiRowReturn(b ...bool) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) MuxName(s string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Name(s string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) NoDoc(b ...bool) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) NoValidate(b ...bool) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Port(ss ...string) *MuxAdditionalCriteria + func (mm *MuxAdditionalCriteria) Scheme(ss ...string) *MuxAdditionalCriteria + type MuxEntry struct + AuthPotentiallyReq bool + AuthPrivs []string + AuthReq bool + CurlSample string + Desc string + DocTag string + Fx MatchFunc + HostList []string + Input []*MuxInput + MatchTo []MuxMatchItem + MethodList []string + MultiRowReturn bool + MuxName string + Name string + NoDoc bool + NoValidate bool + Pattern string + PortList []string + Pos int + SchemeList []string + UrlPattern string + type MuxInput struct + AltName []string + Default string + IsSecret bool + Label string + LineFile string + ListValues []string + MaxLen int + MaxVal int64 + MinLen int + MinVal int64 + Name string + Required bool + Type string + UseMaxVal bool + UseMinVal bool + Validate string + ValidationData interface{} + type MuxMatchItem struct + Fx MatchFunc + LenOp string + LenVal int + MatchType MuxMatchType + Msg string + Re *regexp.Regexp + To string + VarName string + func GenerateMatchTo(uriMatchTo string) (mt []MuxMatchItem) + func ParseMatcher(mm string) (rv MuxMatchItem, err error) + type MuxMatchType int + const MuxMatchTypeAnyString + const MuxMatchTypeBoolean + const MuxMatchTypeEndRest + const MuxMatchTypeError + const MuxMatchTypeFunc + const MuxMatchTypeHexNumber + const MuxMatchTypeLen + const MuxMatchTypeNumber + const MuxMatchTypeRE + const MuxMatchTypeString + const MuxMatchTypeText + const MuxMatchTypeUUID + func DecodeMuxMatchTypeString(ss string) (rv MuxMatchType, err error) + func (mm MuxMatchType) String() string + func (ww *MuxMatchType) UnmarshalJSON(b []byte) error + func (ww MuxMatchType) MarshalJSON() ([]byte, error) + type MuxRRAdditionalCriteria struct + func (mm *MuxRRAdditionalCriteria) AddQuery(varName, valName string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) AddQueryConst(varName, value string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) AuthPotentiallyRequired() *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) AuthPrivs(p ...string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) AuthRequired() *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) Desc(s string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) DocTag(s string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) GenProtoBuf(typeOf string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) GenProtoBufEnum(val_names []string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) MatchFinal() *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) Method(mt ...string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) MethodFromTo(mf, mt string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) MultiRowReturn(b ...bool) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) MuxName(s string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) Name(s string) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) NoDoc(b ...bool) *MuxRRAdditionalCriteria + func (mm *MuxRRAdditionalCriteria) NoValidate(b ...bool) *MuxRRAdditionalCriteria + type MuxRREntry struct + AuthPotentiallyReq bool + AuthPrivs []string + AuthReq bool + CurlSample string + Desc string + DocTag string + Final bool + Fx MatchFunc + MatchTo []MuxMatchItem + MethodList []string + MethodListTo []string + MultiRowReturn bool + MuxName string + Name string + NoDoc bool + NoValidate bool + Pattern string + Pos int + QueryConst []QueryNameValue + QueryName []QueryNameMap + ReplaceTmpl string + UrlPattern string + type PGColumn struct + ColumnName string + type PGProc struct + Columns []PGColumn + FunctionName string + type PGTable struct + Columns []PGColumn + TableName string + type ParamListItem struct + AutoGen string + DataType string + DefaultValue string + MaxLen int + MinLen int + ParamName string + ReqVar string + Required bool + ValidationData string + type PrePostFlag int + const PostFlag + const PreFlag + type PrePostFx func(www http.ResponseWriter, req *http.Request, pp PrePostFlag, ...) (outData string, status StatusType, err error) + type ProcReturnValueItem struct + DataType string + DefaultValue string + ParamName string + type ProcReturnValueSet struct + ReturnValue []ProcReturnValueItem + Status string + type QueryNameMap struct + From string + To string + type QueryNameValue struct + Name string + Value string + type RanData struct + Epoc int + Status string + TTL int + Value string + type RequestError struct + ClientMessage string + Context string + DBError error + DetailedMessage string + LineFile string + Params []string + RequestMethod string + RequestURI string + Status int + Stmt string + UUID string + type SaveConfigDataType int + const BoolType + const IntType + const StringType + type SaveConfigItemType struct + BValue bool + IValue int64 + Name string + Ty SaveConfigDataType + Value string + type ServeMux struct + BaseServerUrl string + InOrd []*MuxEntry + IsCompiled bool + RRList []*MuxRREntry + func NewServeMux(out io.Writer, gcfg *BaseConfigType) *ServeMux + func (mux *ServeMux) Compile() + func (mux *ServeMux) CompilePB(pbDir string) + func (mux *ServeMux) ConvRRData(www http.ResponseWriter, req *http.Request, mdata map[string]string, ...) (rv string) + func (mux *ServeMux) CreateHandleBulkOperations(gCfg *BaseConfigType) (handle func(www http.ResponseWriter, req *http.Request)) + func (mux *ServeMux) Desc() (handle func(www http.ResponseWriter, req *http.Request)) + func (mux *ServeMux) DumpPaths() + func (mux *ServeMux) DumpReplaceRule(fp *os.File) + func (mux *ServeMux) EndApp() + func (mux *ServeMux) GenCurlSample(vv *MuxEntry) (rv string) + func (mux *ServeMux) GenRRCurlSample(vv *MuxRREntry) (rv string) + func (mux *ServeMux) GenRRUrlPattern(me *MuxRREntry) (rv string) + func (mux *ServeMux) GenUrlPattern(me *MuxEntry) (rv string) + func (mux *ServeMux) GenerateAnalytics() (handle func(www http.ResponseWriter, req *http.Request)) + func (mux *ServeMux) Handle(pattern string, handler http.Handler) (rv *MuxAdditionalCriteria) + func (mux *ServeMux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) + func (mux *ServeMux) Handler(www http.ResponseWriter, req *http.Request) (h http.Handler, pattern string) + func (mux *ServeMux) HasRolePriv(www http.ResponseWriter, req *http.Request, reqAuthPrivs []string) bool + func (mux *ServeMux) InvalidInputParameterHandler(kk int, e error) http.Handler + func (mux *ServeMux) IsAuthRequired(www http.ResponseWriter, req *http.Request) (AuthReq bool, pattern string, authPrivs []string) + func (mux *ServeMux) ReplaceRule(pattern, rTempl string) (rv *MuxRRAdditionalCriteria) + func (mux *ServeMux) RewriteRequest(www http.ResponseWriter, req *http.Request, URIComponents []string) (err error) + func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (mux *ServeMux) SetApp(path, name string, cfg ...map[string]interface{}) *MuxAdditionalCriteria + func (mux *ServeMux) SetDebugFlags(DbOn map[string]bool) + func (mux *ServeMux) ValidateInputParameters(www http.ResponseWriter, req *http.Request, kInOrd int) (err error) + func (mux *ServeMux) ValidateValidationTypeAtCompile(kInOrd int) (err error) + type StatusType int + const ErrorFail + const OkContinueSaveOutData + const OkDiscard + func ConvGeolocation(www http.ResponseWriter, req *http.Request, pp PrePostFlag, ...) (outData string, status StatusType, err error) + func ConvQrId(www http.ResponseWriter, req *http.Request, pp PrePostFlag, ...) (outData string, status StatusType, err error) + func ConvQrId60(www http.ResponseWriter, req *http.Request, pp PrePostFlag, ...) (outData string, status StatusType, err error) + func PPFlushPrivCache(www http.ResponseWriter, req *http.Request, pp PrePostFlag, ...) (outData string, status StatusType, err error) + type ValidationFunction func(s string, data interface{}, data2 []string) bool