Versions in this module Expand all Collapse all v0 v0.1.1 May 16, 2026 Changes in this version type Smtpssl + InsecureSkipVerify bool v0.1.0 May 16, 2026 Changes in this version + var HTTPClient = &http.Client + func CheckPasswordHash(password, hash string) error + func DecodeScoder(text string, CRYPTEXT string) string + func Digest(key string, message ...string) string + func Digest64(key string, message ...string) string + func Digesting(key string, message ...string) string + func Do(method string, url string, form url.Values, header map[string]string) ([]byte, error) + func Do_hash(method string, url string, form url.Values, header map[string]string) (map[string]interface{}, error) + func EncodeScoder(text string, CRYPTEXT string) string + func EnsurePasswordHash(password string) (string, error) + func Filtering(vs []string, f func(string) bool) []string + func Get(url string, form url.Values) ([]byte, error) + func Get_hash(url string, form url.Values) (map[string]interface{}, error) + func Grep(vs []string, t string) bool + func HashPassword(password string) (string, error) + func Index(vs []string, t string) int + func Int2ip(ip uint32) string + func Interface2String(v interface{}) string + func Invoke(any interface{}, name string, args ...interface{}) []reflect.Value + func Invoke0(any interface{}, name string, args ...interface{}) + func InvokeError(any interface{}, name string, args ...interface{}) error + func InvokeOptionalVoid(any interface{}, name string, args ...interface{}) error + func InvokeVoid(any interface{}, name string, args ...interface{}) error + func Ip2int(ip string) uint32 + func LogInfo(message string, fields map[string]interface{}) + func Map(vs []string, f func(string) string) []string + func MultipartRequest(url string, form url.Values, paramName, path string) (*http.Request, error) + func MultipartUpload(url string, form url.Values, header map[string]string, paramName, path string) ([]byte, error) + func NormalizeDriver(driver string) string + func Oauth1Request(method string, uri string, hash map[string]string, items []string, ...) ([]byte, error) + func Oauth1Sign(method string, uri string, hash map[string]string, items []string, ...) string + func Post(url string, form url.Values) ([]byte, error) + func PostFile(url string, fn string, header map[string]string) ([]byte, error) + func PostFile_hash(url string, fn string, header map[string]string) (map[string]interface{}, error) + func Post_hash(url string, form url.Values) (map[string]interface{}, error) + func RebindSQL(driver, query string) string + func Scoder(text string, CRYPTEXT string) []byte + func SelectConditionString(extra url.Values, table ...string) (string, []interface{}) + func SelectConditionStringSafe(extra url.Values, table ...string) (string, []interface{}, error) + func SelectLabelString(selectPars interface{}) (string, []string) + func SelectLabelStringSafe(selectPars interface{}) (string, []string, error) + func SingleConditionString(keyname interface{}, ids []interface{}, extra ...url.Values) (string, []interface{}) + func SingleConditionStringSafe(keyname interface{}, ids []interface{}, extra ...url.Values) (string, []interface{}, error) + func SortMapMd5(secret, md5_name string, q url.Values) string + func Stripchars(chr, str string) string + func TableString(currentTables []Table) string + func TableStringSafe(currentTables []Table) (string, error) + func To_hash(body []byte) (map[string]interface{}, error) + func To_slice(body []byte) ([]map[string]interface{}, error) + func TryInvoke(any interface{}, name string, args ...interface{}) (out []reflect.Value, err error) + func Unix_timestamp() int + func ValidSQLIdentifier(name string) bool + func ValidateComponent(comp *Component) error + func ValidateSQLIdentifier(kind, name string) error + func ValidateSQLIdentifierList(kind string, names []string) error + func ValidateSQLJoinCondition(cond string) error + func ValidateSQLOrderBy(order string) error + func ValidateSQLQualifiedIdentifier(kind, name string) error + func ValidateSQLSelectExpression(expr string) error + type Access struct + func NewAccess(base Base) *Access + func (self *Access) SetIP() string + func (self *Access) SetWhen() int + func (self *Access) Signature(fields ...string) string + func (self *Access) VerifyCookie(raw string) error + type Apns struct + Badge int8 + Cert string + DeviceToken string + Key string + Passphrase string + Sound string + func (self *Apns) Send(body string) error + type Base struct + C *Config + ChartagValue string + R *http.Request + RoleValue string + W http.ResponseWriter + func (self *Base) CSRFInput() template.HTML + func (self *Base) CSRFToken() string + func (self *Base) Fulfill() error + func (self *Base) GetIP() string + func (self *Base) GetProvider() string + func (self *Base) GetRole() Role + func (self *Base) SendNocache(output string) + func (self *Base) SendPage(output string) + func (self *Base) SendStatusPage(status int, output ...string) + func (self *Base) SetCookie(name string, value string, maxAge ...int) + func (self *Base) SetCookieExpire(name string) + func (self *Base) SetCookieSession(name string, value string) + func (self *Base) ValidateCSRF() error + type Beacon struct + ChartagValue string + Code int + Content string + Header http.Header + Redirect string + RoleValue string + func NewBeacon(controller Controller, role, tag string, header http.Header) (*Beacon, error) + func (self *Beacon) Cookies() []*http.Cookie + func (self *Beacon) GetDirect(in string) error + func (self *Beacon) GetMock(pars ...string) error + func (self *Beacon) LOGIN(args url.Values) error + func (self *Beacon) PostMock(obj string, args url.Values) error + type CGI interface + Authenticate func(string, string) error + SetIP func() string + SetWhen func() int + type Chartag struct + Case int8 + Challenge string + ContentType string + Failed string + Logged string + Logout string + Short string + func (self Chartag) CallChallenge() string + func (self Chartag) CallFailed() string + func (self Chartag) CallLogged() string + func (self Chartag) CallLogout() string + type Component struct + Actions map[string]map[string][]string + CurrentIDAuto string + CurrentKey string + CurrentKeys []string + CurrentTable string + CurrentTables []Table + EditPars []string + Empties string + Fields string + Fks map[string][]string + InsertPars []string + InsupdPars []string + KeyIN map[string]string + Maxpageno string + Nextpages map[string][]map[string]interface{} + Pageno string + Rowcount string + Sortby string + Sortreverse string + TopicsHash map[string]string + TopicsPars []string + TotalForce int + Totalno string + UpdatePars []string + func LoadComponent(filename string) (*Component, error) + func NewComponent(filename string) *Component + type Config struct + ActionName string + Blks map[string]map[string]string + CORSOrigins []string + CSRFName string + CallbackName string + Chartags map[string]Chartag + ComponentName string + ConnectArray []string + Custom map[string]string + DefaultActions map[string]string + DocumentRoot string + Errors map[string]string + GoErrName string + GoMD5Name string + GoProbeName string + GoStampName string + GoURIName string + LoginName string + LogoutName string + Oauth1s []string + Oauth2s []string + Patterns []Pattern + ProjectRoot string + ProviderName string + Pubrole string + RequestTimeoutSeconds int + RoleName string + Roles map[string]Role + Script string + Secret string + ServerPort string + ServerURL string + TagName string + Template string + UploadDir string + UploadMaxBytes int64 + UploadURL string + func NewConfig(filename string) (*Config, error) + func (c *Config) DriverName() string + func (c *Config) OpenDB() (*sql.DB, error) + func (c *Config) ValidateLocalRedirect(raw string) (string, error) + func (self *Config) Sendmail(lists []map[string]interface{}, ARGS url.Values, other map[string]interface{}) error + type Controller struct + C *Config + DB *sql.DB + DBDriver string + FilterFactories map[string]func() interface{} + Filters map[string]interface{} + Logger *zap.Logger + ModelFactories map[string]func() interface{} + Models map[string]interface{} + Storage map[string]interface{} + StorageFactories map[string]func() interface{} + func NewController(config *Config, db *sql.DB, logger ...*zap.Logger) *Controller + func (self *Controller) Handle(obj string, base Base, method string) error + func (self *Controller) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Crud struct + CurrentTable string + CurrentTables []Table + LastIDColumn string + func NewCrud(db *sql.DB, table string, tables []Table) *Crud + func (self *Crud) DeleteHash(keyname interface{}, ids []interface{}, extra ...url.Values) error + func (self *Crud) EditHash(lists *[]map[string]interface{}, selectPars interface{}, keyname interface{}, ...) error + func (self *Crud) InsertHash(fieldValues url.Values) error + func (self *Crud) InsupdHash(fieldValues url.Values, upd_fieldValues url.Values, keyname interface{}, ...) error + func (self *Crud) InsupdTable(fieldValues url.Values, keyname string, uniques []string, s_hash *string) error + func (self *Crud) ReplaceHash(fieldValues url.Values) error + func (self *Crud) TopicsHash(lists *[]map[string]interface{}, selectPars interface{}, extra ...url.Values) error + func (self *Crud) TopicsHashOrder(lists *[]map[string]interface{}, selectPars interface{}, order string, ...) error + func (self *Crud) TotalHash(hash map[string]interface{}, label string, extra ...url.Values) error + func (self *Crud) UpdateHash(fieldValues url.Values, keyname interface{}, ids []interface{}, ...) error + func (self *Crud) UpdateHashNulls(fieldValues url.Values, keyname interface{}, ids []interface{}, ...) error + type DBI struct + Affected int64 + DB *sql.DB + Driver string + LastID int64 + Logger *zap.Logger + func (self *DBI) DoProc(hash map[string]interface{}, names []string, procName string, ...) error + func (self *DBI) DoSQL(sql string, args ...interface{}) error + func (self *DBI) DoSQLReturning(sql string, returnLabel string, args ...interface{}) error + func (self *DBI) DoSQLs(sql string, args [][]interface{}) error + func (self *DBI) ExecSQL(sql string) error + func (self *DBI) GetArgs(ARGS url.Values, sql string, args ...interface{}) error + func (self *DBI) GetSQL(res map[string]interface{}, sql string, args ...interface{}) error + func (self *DBI) GetSQLLabel(res map[string]interface{}, sql string, selectLabels []string, ...) error + func (self *DBI) SelectDoProc(lists *[]map[string]interface{}, hash map[string]interface{}, names []string, ...) error + func (self *DBI) SelectDoProcLabel(lists *[]map[string]interface{}, hash map[string]interface{}, names []string, ...) error + func (self *DBI) SelectProc(lists *[]map[string]interface{}, procName string, args ...interface{}) error + func (self *DBI) SelectProcLabel(lists *[]map[string]interface{}, procName string, selectLabels []string, ...) error + func (self *DBI) SelectSQL(lists *[]map[string]interface{}, sql string, args ...interface{}) error + func (self *DBI) SelectSQLLabel(lists *[]map[string]interface{}, sql string, selectLabels []string, ...) error + func (self *DBI) SetDriver(driver string) + type Filter struct + Action string + Actions map[string]map[string][]string + Component string + Fks map[string][]string + Logger *zap.Logger + OTHER *map[string]interface{} + func (self *Filter) After(model *Model) error + func (self *Filter) Before(model *Model, extra url.Values, nextextra url.Values) error + func (self *Filter) GetAll() (map[string][]string, []string) + func (self *Filter) Initialize(comp *Component, logger ...*zap.Logger) + func (self *Filter) Preset() error + func (self *Filter) SetAll(base Base, action string, component string, other *map[string]interface{}) + func (self *Filter) SetLoginAs(roleValue, login, uri string, db *sql.DB) error + type Gate struct + func NewGate(base Base) *Gate + func (self *Gate) Forbid() error + func (self *Gate) GetAttribute(key string) (string, error) + func (self *Gate) GetAttributes(ref map[string]string) error + func (self *Gate) HandleLogout() error + func (self *Gate) SetAttribute(key string, value string) error + func (self *Gate) SetAttributes(ref map[string]string) error + type Gcm struct + Api_key string + Collapse_key string + Delay_while_idle string + Registration_ids string + Time_to_live string + func (self *Gcm) Send(body string) error + type Gerror struct + Code int + Errstr string + func Err(code int, str ...string) Gerror + func (self *Gerror) Refresh() + func (self Gerror) Error() string + type Issuer struct + ConditionURI [][]string + Credential []string + Default bool + InPars []string + OutPars []string + PasswordHash string + ProviderPars map[string]string + Screen int8 + Sql string + Sql_as string + type Model struct + ARGS url.Values + Context context.Context + CurrentIDAuto string + CurrentKey string + CurrentKeys []string + EMPTIES string + EditPars []string + FIELD string + InsertPars []string + InsupdPars []string + KeyIN map[string]string + LISTS *[]map[string]interface{} + MAXPAGENO string + Nextpages map[string][]map[string]interface{} + OTHER *map[string]interface{} + PAGENO string + ROWCOUNT string + SORTBY string + SORTREVERSE string + Storage map[string]interface{} + TOTALNO string + TopicsHashpars map[string]string + TopicsPars []string + TotalForce int + UpdatePars []string + func (self *Model) CallNextpage(page map[string]interface{}, extra ...url.Values) error + func (self *Model) CallOnce(page map[string]interface{}, extra ...url.Values) error + func (self *Model) Delete(extra ...url.Values) error + func (self *Model) Edit(extra ...url.Values) error + func (self *Model) Existing(table string, field string, val interface{}) error + func (self *Model) GetOrderString() string + func (self *Model) GetOrderStringChecked() (string, error) + func (self *Model) Initialize(comp *Component, logger ...*zap.Logger) + func (self *Model) Insert(extra ...url.Values) error + func (self *Model) Insupd(extra ...url.Values) error + func (self *Model) ProcessAfter(action string, extra ...url.Values) error + func (self *Model) ProperValue(v string, extra url.Values) string + func (self *Model) ProperValues(vs []string, extra url.Values) []string + func (self *Model) Randomid(table string, field string, m ...interface{}) error + func (self *Model) SetDB(db *sql.DB) + func (self *Model) SetDefaults(args url.Values, lists *[]map[string]interface{}, ...) + func (self *Model) SetDriver(driver string) + func (self *Model) Topics(extra ...url.Values) error + func (self *Model) Update(extra ...url.Values) error + type Oauth1 struct + Combined []string + DefaultPars map[string]string + X_li_format string + func NewOauth1(base Base, db *sql.DB, uri string, provider string) *Oauth1 + func (self *Oauth1) Authenticate(login, password string) error + func (self *Oauth1) Oauth1_api(method string, uri string, form url.Values) (map[string]interface{}, error) + func (self *Oauth1) Oauth1_apis(method string, uri string, form url.Values) ([]map[string]interface{}, error) + type Oauth2 struct + AccessToken string + DefaultPars map[string]string + func NewOauth2(base Base, db *sql.DB, uri string, provider string) *Oauth2 + func (self *Oauth2) Authenticate(login, password string) error + func (self *Oauth2) Multipart_upload(uri string, form url.Values, paramName, path string) (map[string]interface{}, error) + func (self *Oauth2) Multipart_uploads(uri string, form url.Values, paramName, path string) ([]map[string]interface{}, error) + func (self *Oauth2) Oauth2_api(method string, uri string, form url.Values, h map[string]string) (map[string]interface{}, error) + func (self *Oauth2) Oauth2_apis(method string, uri string, form url.Values, h map[string]string) ([]map[string]interface{}, error) + type Pattern struct + Case PatternCase + Expire int + Initials string + Keys []string + Reg string + Regs *regexp.Regexp + type PatternCase int + const CACHE + const REROUTE + const STATIC + type Procedure struct + DB *sql.DB + func NewProcedure(base Base, db *sql.DB, uri string, provider string) *Procedure + func (self *Procedure) Authenticate(login, passwd string) error + func (self *Procedure) Authenticate_as(login string) error + func (self *Procedure) Callback_address() string + func (self *Procedure) Fill_provider(back map[string]interface{}) error + func (self *Procedure) Run_sql(call_name string, in_vals []interface{}) error + type Role struct + Attributes []string + Coding string + Domain string + Duration int + Grouplist []string + Id_cipher bool + Id_name string + Is_admin bool + Issuers map[string]Issuer + Length int8 + Logout string + MaxAge int + Path string + Secret string + Surface string + Type_id int + Userlist []string + type Smtp struct + Address string + From string + Headers map[string]string + Password string + To []string + Username string + func (self *Smtp) Send(headers map[string]string, content string) error + type Smtpssl struct + Address string + From string + Headers map[string]string + Password string + To []string + Username string + func (self *Smtpssl) Send(headers map[string]string, content string) error + type Table struct + Alias string + Name string + On string + Type string + Using string + type Ticket struct + ConditionURI [][]string + Out_hash map[string]interface{} + Provider string + Uri string + func NewTicket(base Base, uri string, provider string) *Ticket + func (self *Ticket) Authenticate(login, password string) error + func (self *Ticket) GetAttributes() []string + func (self *Ticket) Handler() error + func (self *Ticket) HandlerFields() error + func (self *Ticket) Handler_login() error + type Tmpl struct + ARGS url.Values + Extra map[string]interface{} + Lists []map[string]interface{} + Other map[string]interface{} + Success bool + func (self *Tmpl) Get_page(T *template.Template) (string, error)