Documentation
¶
Overview ¶
Package boost File: boost.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/boost.go Author: Vibe Coding Created: 2025/12/20 12:31:58 Description: Global instance declarations for go-boost library --------------------------------------------------------------------------------
Package boost File: config.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/config.go Author: Vibe Coding Created: 2025/12/20 12:31:58 Description: Config provides functionality for saving and loading configuration --------------------------------------------------------------------------------
Package boost File: debugger.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/debugger.go Author: Vibe Coding Created: 2025/12/20 12:31:58 Description: DEBUGGER is a utility for detecting debuggers attached to the process --------------------------------------------------------------------------------
Package boost File: directory.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/directory.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: Directory handles operations related to the current directory, --------------------------------------------------------------------------------
Package boost File: file.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/file.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: File provides utility methods for file operations --------------------------------------------------------------------------------
Package boost File: filepath.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/filepath.go Author: Vibe Coding Created: 12/20/2025 12:31:58 Description: FilePath provides utility methods for file path operations, --------------------------------------------------------------------------------
Package boost File: http.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/http.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: HTTP provides utility methods for HTTP/HTTPS/WS/WSS operations,
including support for self-signed certificates.
--------------------------------------------------------------------------------
Package boost File: json.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/json.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: JSON provides utility methods for JSON operations, including
marshal, unmarshal, validation, formatting, minification, and file operations.
--------------------------------------------------------------------------------
Package boost File: logger.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/logger.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: Logger is a utility for recording and managing application performance metrics and logs. --------------------------------------------------------------------------------
Package boost File: mqtt.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/mqtt.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: MQTT client implementation --------------------------------------------------------------------------------
Package boost File: network.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/network.go Author: Vibe Coding Created: 01/07/2026 11:03:46 Description: NETWORK provides functions to get network IP addresses with the smallest metric. --------------------------------------------------------------------------------
Package boost File: os.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/os.go Author: Vibe Coding Created: 12/20/2025 12:31:58 Description: OS provides utility methods for operating system operations, --------------------------------------------------------------------------------
Package boost File: process.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/process.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: Process handles operations related to the current process --------------------------------------------------------------------------------
Package boost File: serve.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/serve.go Author: TRAE AI Created: 12/30/2025 11:03:46 Description: SERVE provides HTTP and WebSocket server functionality with automatic TLS support --------------------------------------------------------------------------------
Package boost File: soap.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/soap.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: SOAP provides functionality for SOAP web service calls with support for attachments and headers --------------------------------------------------------------------------------
Package boost File: sqlite.go Url: `https://github.com/xiang-tai-duo/go-boost/blob/master/sqlite.go` Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: SQLite is a wrapper for SQLite instance operations, providing a set of methods for instance management and query execution. --------------------------------------------------------------------------------
Package boost File: string.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/string.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: STRING is a wrapper for string operations, providing a set of methods for string manipulation. --------------------------------------------------------------------------------
Package boost File: websocket.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/websocket.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: WebSocket client functionality for Go applications --------------------------------------------------------------------------------
Package boost File: xml.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/xml.go Author: Vibe Coding Created: 12/30/2025 11:03:46 Description: XML provides utility methods for XML operations, including marshal, unmarshal, validation, formatting, minification, and file operations. --------------------------------------------------------------------------------
Index ¶
- Constants
- Variables
- func SetAllowSelfSignedCertificates(allow bool)
- type ACL_CHECK_CALLBACK
- type AUTH_CALLBACK
- type BEFORE_SERVE_STATIC_CALLBACK_HANDLER
- type BOOST
- type CONFIG
- func (c *CONFIG) Clear() error
- func (c *CONFIG) Delete(key string) error
- func (c *CONFIG) Exists(key string) (bool, error)
- func (c *CONFIG) Get(key string) (interface{}, bool, error)
- func (c *CONFIG) GetBoolean(key string) (bool, error)
- func (c *CONFIG) GetFloat(key string) (float64, error)
- func (c *CONFIG) GetInteger(key string) (int, error)
- func (c *CONFIG) GetString(key string) (string, error)
- func (c *CONFIG) GetStringSlice(key string) ([]string, error)
- func (c *CONFIG) Load(filePath ...string) error
- func (c *CONFIG) Save(filePath ...string) error
- func (c *CONFIG) Set(key string, value interface{}) error
- func (c *CONFIG) SetBoolean(key string, value bool) error
- func (c *CONFIG) SetFloat(key string, value float64) error
- func (c *CONFIG) SetInteger(key string, value int) error
- func (c *CONFIG) SetString(key string, value string) error
- func (c *CONFIG) SetStrings(key string, value []string) error
- type CONNECT_CALLBACK
- type DEBUGGER
- type DIRECTORY
- func (d *DIRECTORY) Base() string
- func (d *DIRECTORY) Clean() *DIRECTORY
- func (d *DIRECTORY) Create() error
- func (d *DIRECTORY) Delete() error
- func (d *DIRECTORY) DeleteAll() error
- func (d *DIRECTORY) FromPath(path string) *DIRECTORY
- func (d *DIRECTORY) FromSlash() *DIRECTORY
- func (d *DIRECTORY) GetAll() ([]string, error)
- func (d *DIRECTORY) GetDirectories() ([]string, error)
- func (d *DIRECTORY) GetFiles() ([]string, error)
- func (d *DIRECTORY) GetWorkingDirectory() (*DIRECTORY, error)
- func (d *DIRECTORY) IsAbs() bool
- func (d *DIRECTORY) IsExists() bool
- func (d *DIRECTORY) Join(elem ...string) *DIRECTORY
- func (d *DIRECTORY) MakeAll() error
- func (d *DIRECTORY) Path() string
- func (d *DIRECTORY) SetWorkingDirectory() error
- func (d *DIRECTORY) ToSlash() *DIRECTORY
- type DISCONNECT_CALLBACK
- type FILE
- func (f FILE) Abs() (FILE, error)
- func (f FILE) Append(data []byte) error
- func (f FILE) AppendString(content string) error
- func (f FILE) Base() string
- func (f FILE) Chmod(mode os.FileMode) error
- func (f FILE) Chown(uid int, gid int) error
- func (f FILE) Chtimes(atime time.Time, mtime time.Time) error
- func (f FILE) Clean() FILE
- func (f FILE) Copy(dest FILE) error
- func (f FILE) Delete() error
- func (f FILE) Dir() DIRECTORY
- func (f FILE) Ext() string
- func (f FILE) FromPath(path string) FILE
- func (f FILE) FromSlash() FILE
- func (f FILE) IsAbs() bool
- func (f FILE) IsDir() bool
- func (f FILE) IsExists() bool
- func (f FILE) IsRegular() bool
- func (f FILE) IsSymlink() bool
- func (f FILE) ModTime() time.Time
- func (f FILE) Mode() os.FileMode
- func (f FILE) Name() string
- func (f FILE) Path() string
- func (f FILE) ReadAll() ([]byte, error)
- func (f FILE) ReadString() (string, error)
- func (f FILE) Rel(basepath string) (string, error)
- func (f FILE) Rename(newPath FILE) error
- func (f FILE) Size() int64
- func (f FILE) ToSlash() FILE
- func (f FILE) Write(data []byte) error
- func (f FILE) WriteString(content string) error
- type FILEPATH
- func (f FILEPATH) Abs() (FILEPATH, error)
- func (f FILEPATH) Base() string
- func (f FILEPATH) Clean() FILEPATH
- func (f FILEPATH) Dir() string
- func (f FILEPATH) EvalSymlinks() (FILEPATH, error)
- func (f FILEPATH) Ext() string
- func (f FILEPATH) FromSlash() FILEPATH
- func (f FILEPATH) GetFileExtension() string
- func (f FILEPATH) GetFileName() string
- func (f FILEPATH) GetFileNameWithoutExtension() string
- func (f FILEPATH) GetParentDirectory() string
- func (f FILEPATH) Glob() ([]string, error)
- func (f FILEPATH) HasPrefix(prefix string) bool
- func (f FILEPATH) IsAbs() bool
- func (f FILEPATH) IsLocal() bool
- func (f FILEPATH) Join(elem ...string) FILEPATH
- func (f FILEPATH) Localize() (FILEPATH, error)
- func (f FILEPATH) Match(pattern string) (bool, error)
- func (f *FILEPATH) Path(filePath ...string) string
- func (f FILEPATH) Rel(basepath string) (FILEPATH, error)
- func (f FILEPATH) Split() (string, string)
- func (f FILEPATH) SplitList() []string
- func (f FILEPATH) ToSlash() FILEPATH
- func (f FILEPATH) VolumeName() string
- func (f FILEPATH) Walk(fn filepath.WalkFunc) error
- func (f FILEPATH) WalkDir(fn fs.WalkDirFunc) error
- type HTTP
- func (h *HTTP) Delete(requestURL string) (string, int, error)
- func (h *HTTP) Do(method string, requestURL string, contentType string, body string) (string, int, error)
- func (h *HTTP) Get(requestURL string) (string, int, error)
- func (h *HTTP) GetTimeout() time.Duration
- func (h *HTTP) Post(requestURL string, contentType string, body string) (string, int, error)
- func (h *HTTP) Put(requestURL string, contentType string, body string) (string, int, error)
- func (h *HTTP) SetTimeout(timeout time.Duration)
- func (h *HTTP) UpdateClientTransport() error
- type IP_ADDRESSES
- type JSON
- func (j *JSON) Format(indent string) (string, error)
- func (j *JSON) GetInteger(path string) (int, error)
- func (j *JSON) GetMap(path string) (map[string]interface{}, error)
- func (j *JSON) GetString(path string) (string, error)
- func (j *JSON) GetValue(path string) (interface{}, error)
- func (j *JSON) Marshal() (string, error)
- func (j *JSON) Minify() (string, error)
- func (j *JSON) SetInteger(path string, value int) (*JSON, error)
- func (j *JSON) SetString(path string, value string) (*JSON, error)
- func (j *JSON) SetValue(path string, value interface{}) (*JSON, error)
- func (j *JSON) Unmarshal(target interface{}) error
- func (j *JSON) Validate() (bool, error)
- func (j *JSON) WriteFile(filePath string, indent ...string) error
- type LOGGER
- func (logger *LOGGER) Debug(message string)
- func (logger *LOGGER) DecryptSecretLogs(logFilePath string) ([]string, error)
- func (logger *LOGGER) Error(message interface{}, skipStackFrames ...int)
- func (logger *LOGGER) GetGoroutineID() int
- func (logger *LOGGER) Info(message string)
- func (logger *LOGGER) Secret(message string)
- func (logger *LOGGER) Warning(message string)
- type MQTT
- func (m *MQTT) Connect() error
- func (m *MQTT) Disconnect(timeoutDuration time.Duration) error
- func (m *MQTT) GetBroker() string
- func (m *MQTT) GetClientID() string
- func (m *MQTT) GetConnectionTimeout() time.Duration
- func (m *MQTT) GetKeepAlive() time.Duration
- func (m *MQTT) GetPassword() string
- func (m *MQTT) GetQoS() int
- func (m *MQTT) GetSubscriptions() map[string]int
- func (m *MQTT) GetUsername() string
- func (m *MQTT) IsConnected() bool
- func (m *MQTT) Publish(topic string, payload string, params ...interface{}) error
- func (m *MQTT) SetBroker(brokerAddress string) error
- func (m *MQTT) SetClientID(clientIdentifier string) error
- func (m *MQTT) SetConnectHandler(handler func()) error
- func (m *MQTT) SetConnectionTimeout(timeoutDuration time.Duration) error
- func (m *MQTT) SetDisconnectHandler(handler func()) error
- func (m *MQTT) SetKeepAlive(keepAliveDuration time.Duration) error
- func (m *MQTT) SetMessageHandler(handler func(*MQTT_MESSAGE)) error
- func (m *MQTT) SetPassword(passwordValue string) error
- func (m *MQTT) SetQoS(qosLevel int) error
- func (m *MQTT) SetUsername(usernameValue string) error
- func (m *MQTT) Subscribe(topic string, qos int) error
- func (m *MQTT) Unsubscribe(topic string) error
- type MQTT_MESSAGE
- type MQTT_SERVER
- func (ms *MQTT_SERVER) FormatError(err error) string
- func (ms *MQTT_SERVER) GenerateSelfSignedCertificate() (*tls.Certificate, error)
- func (ms *MQTT_SERVER) GetClientID(client *server.Client) string
- func (ms *MQTT_SERVER) GetClientIP(client *server.Client) (string, int)
- func (ms *MQTT_SERVER) GetClientPort(client *server.Client) int
- func (ms *MQTT_SERVER) GetConnectPassword(packet packets.Packet) string
- func (ms *MQTT_SERVER) GetConnectUsername(packet packets.Packet) string
- func (ms *MQTT_SERVER) GetHost() string
- func (ms *MQTT_SERVER) GetMQTTMessage(packet packets.Packet) *MQTT_MESSAGE
- func (ms *MQTT_SERVER) GetOperationType(write bool) string
- func (ms *MQTT_SERVER) GetPort() int
- func (ms *MQTT_SERVER) GetPublishPayload(packet packets.Packet) string
- func (ms *MQTT_SERVER) GetPublishTopic(packet packets.Packet) string
- func (ms *MQTT_SERVER) GetSubscriptionFilters(packet packets.Packet) []string
- func (ms *MQTT_SERVER) GetSubscriptions(packet packets.Packet) map[string]int
- func (ms *MQTT_SERVER) IsRunning() bool
- func (ms *MQTT_SERVER) Publish(topic string, payload string, params ...interface{}) error
- func (ms *MQTT_SERVER) SetACLCheckCallback(callback ACL_CHECK_CALLBACK) error
- func (ms *MQTT_SERVER) SetAuthCallback(callback AUTH_CALLBACK) error
- func (ms *MQTT_SERVER) SetCertFile(certFilePath string) error
- func (ms *MQTT_SERVER) SetConnectCallback(callback CONNECT_CALLBACK) error
- func (ms *MQTT_SERVER) SetDisconnectCallback(callback DISCONNECT_CALLBACK) error
- func (ms *MQTT_SERVER) SetKeyFile(keyFilePath string) error
- func (ms *MQTT_SERVER) SetPublishCallback(callback PUBLISH_CALLBACK) error
- func (ms *MQTT_SERVER) SetSubscribeCallback(callback SUBSCRIBE_CALLBACK) error
- func (ms *MQTT_SERVER) SetSubscribedCallback(callback SUBSCRIBED_CALLBACK) error
- func (ms *MQTT_SERVER) SetUnsubscribeCallback(callback UNSUBSCRIBE_CALLBACK) error
- func (ms *MQTT_SERVER) SetUnsubscribedCallback(callback UNSUBSCRIBED_CALLBACK) error
- func (ms *MQTT_SERVER) Start(params ...interface{}) error
- func (ms *MQTT_SERVER) Stop() error
- type MQTT_SERVE_HOOK
- func (h *MQTT_SERVE_HOOK) ID() string
- func (h *MQTT_SERVE_HOOK) OnACLCheck(client *server.Client, topic string, write bool) bool
- func (h *MQTT_SERVE_HOOK) OnConnect(client *server.Client, packet packets.Packet) error
- func (h *MQTT_SERVE_HOOK) OnConnectAuthenticate(client *server.Client, packet packets.Packet) bool
- func (h *MQTT_SERVE_HOOK) OnDisconnect(client *server.Client, err error, expire bool)
- func (h *MQTT_SERVE_HOOK) OnPublish(client *server.Client, packet packets.Packet) (packets.Packet, error)
- func (h *MQTT_SERVE_HOOK) OnSubscribe(client *server.Client, packet packets.Packet) packets.Packet
- func (h *MQTT_SERVE_HOOK) OnSubscribed(client *server.Client, packet packets.Packet, reasonCodes []byte)
- func (h *MQTT_SERVE_HOOK) OnUnsubscribe(client *server.Client, packet packets.Packet) packets.Packet
- func (h *MQTT_SERVE_HOOK) OnUnsubscribed(client *server.Client, packet packets.Packet)
- func (h *MQTT_SERVE_HOOK) Provides(b byte) bool
- type OS
- func (o OS) Architecture() string
- func (o OS) Environments() []string
- func (o OS) Executable() string
- func (o OS) ExpandEnvironment(s string) string
- func (o OS) GetEnvironment(key string) string
- func (o OS) HasEnvironment(key string) bool
- func (o OS) Hostname() (string, error)
- func (o OS) IsLinux() bool
- func (o OS) IsMac() bool
- func (o OS) IsUnix() bool
- func (o OS) IsWindows() bool
- func (o OS) LookPath(file string) (string, error)
- func (o OS) Name() string
- func (o OS) PathSeparator() rune
- func (o OS) Separator() string
- func (o OS) SetEnvironment(key string, value string) error
- func (o OS) TemporaryDirectory() string
- func (o OS) UnsetEnvironment(key string) error
- func (o OS) UserHomeDirectory() string
- func (o OS) Version() string
- type PROCESS
- func (p PROCESS) ArgumentCount() int
- func (p PROCESS) Arguments() []string
- func (p PROCESS) CommandExists(cmd string) bool
- func (p PROCESS) Environment() []string
- func (p PROCESS) ExecuteCommand(name string, args ...string) (*exec.Cmd, error)
- func (p PROCESS) ExecuteCommandAndWait(name string, args ...string) error
- func (p PROCESS) ExecuteCommandWithOutput(name string, args ...string) (string, error)
- func (p PROCESS) Exists() bool
- func (p PROCESS) Exit(code int)
- func (p PROCESS) GetArgument(index int) string
- func (p PROCESS) GetArgumentValue(flag string) string
- func (p PROCESS) GetEnvironment(key string) string
- func (p PROCESS) GetParentProcessID() int
- func (p PROCESS) GetProcessID() int
- func (p PROCESS) HasArgument(arg string) bool
- func (p PROCESS) IsCurrent() bool
- func (p PROCESS) Kill() error
- func (p PROCESS) Name() string
- func (p PROCESS) Parent() *PROCESS
- func (p PROCESS) ParentProcessID() int
- func (p PROCESS) Path() string
- func (p PROCESS) Process() (*os.Process, error)
- func (p PROCESS) ProcessID() int
- func (p PROCESS) Signal(sig os.Signal) error
- func (p PROCESS) Wait() (*os.ProcessState, error)
- func (p PROCESS) WaitProcess() (*os.ProcessState, error)
- func (p PROCESS) WorkingDirectory() string
- type PUBLISH_CALLBACK
- type REQUEST_HANDLER
- type ROUTE
- type SEEDED_READER
- type SERVE
- func (s *SERVE) AddStaticDirectory(urlPath string, directoryPath string) *SERVE
- func (s *SERVE) CheckPortAvailable(port int) bool
- func (s *SERVE) EnableRedirectToTLS() error
- func (s *SERVE) GenerateSelfSignedCertificate() (*tls.Certificate, error)
- func (s *SERVE) GenerateSelfSignedCertificatePFX(password string) ([]byte, error)
- func (s *SERVE) GetAvailablePort() (int, error)
- func (s *SERVE) GetStaticDirectory(urlPath string) string
- func (s *SERVE) IsRunning() bool
- func (s *SERVE) Listen(address string) error
- func (s *SERVE) ListenTLS(address string, params ...interface{}) error
- func (s *SERVE) On(method string, pattern string, handler REQUEST_HANDLER) *SERVE
- func (s *SERVE) OnBeforeStaticServe(callback BEFORE_SERVE_STATIC_CALLBACK_HANDLER) *SERVE
- func (s *SERVE) OnError(handler func(error)) *SERVE
- func (s *SERVE) OnStaticServe(callback SERVE_STATIC_CALLBACK_HANDLER) *SERVE
- func (s *SERVE) OnWebSocket(pattern string, dataHandler WEBSOCKET_DATA_HANDLER) *SERVE
- func (s *SERVE) OnWebSocketEx(pattern string, filter interface{}, dataHandler WEBSOCKET_DATA_HANDLER, ...) *SERVE
- func (s *SERVE) RemoveStaticDirectory(urlPath string) *SERVE
- func (s *SERVE) SetContext(ctx context.Context)
- func (s *SERVE) Shutdown() error
- type SERVE_STATIC_CALLBACK_HANDLER
- type SOAP
- func (s *SOAP) Call(url string, action string, body string) (string, int, error)
- func (s *SOAP) CallWithAttachment(url string, action string, body string, attachment []byte, fileName string, ...) (string, int, error)
- func (s *SOAP) CallWithHeader(url string, action string, header string, body string) (string, int, error)
- func (s *SOAP) CreateEnvelope(body string) (string, error)
- func (s *SOAP) ExtractBody(soapResponse string) string
- type SQLITE
- func (sqlite *SQLITE) BeginTransaction() error
- func (sqlite *SQLITE) Close()
- func (sqlite *SQLITE) Commit() error
- func (sqlite *SQLITE) Create(sqliteFilePath string) error
- func (sqlite *SQLITE) CreateNew(sqliteFilePath string) error
- func (sqlite *SQLITE) DesensitizeColumn(tableName string, columnName string) error
- func (sqlite *SQLITE) ExecNonQueries(queries []string, callback SQLITE_EXEC_CALLBACK) error
- func (sqlite *SQLITE) ExecNonQuery(query string) error
- func (sqlite *SQLITE) ExecuteQuery(query string) ([]SQLITE_VALUE, error)
- func (sqlite *SQLITE) MD5(value string) string
- func (sqlite *SQLITE) Open(sqliteFilePath string) error
- func (sqlite *SQLITE) Parse(data interface{}) SQLITE_VALUE
- func (sqlite *SQLITE) Rollback() error
- func (sqlite *SQLITE) TEXT(str string) string
- type SQLITE_EXEC_CALLBACK
- type SQLITE_VALUE
- type STRING
- func (s *STRING) Compare(t string) int
- func (s *STRING) Contains(substr string) bool
- func (s *STRING) ContainsAny(chars string) bool
- func (s *STRING) ContainsRune(r rune) bool
- func (s *STRING) Count(substr string) int
- func (s *STRING) Cut(sep string) (before STRING, after STRING, found bool)
- func (s *STRING) CutPrefix(prefix string) (STRING, bool)
- func (s *STRING) CutSuffix(suffix string) (STRING, bool)
- func (s *STRING) EqualFold(t string) bool
- func (s *STRING) Equals(t string) bool
- func (s *STRING) EqualsIgnoreCase(t string) bool
- func (s *STRING) Fields() []string
- func (s *STRING) FieldsFunc(f func(rune) bool) []string
- func (s *STRING) HasPrefix(prefix string) bool
- func (s *STRING) HasSuffix(suffix string) bool
- func (s *STRING) Index(substr string) int
- func (s *STRING) IndexAny(chars string) int
- func (s *STRING) IndexByte(c byte) int
- func (s *STRING) IndexFunc(f func(rune) bool) int
- func (s *STRING) IndexRune(r rune) int
- func (s *STRING) Join(elems []string) STRING
- func (s *STRING) LastIndex(substr string) int
- func (s *STRING) LastIndexAny(chars string) int
- func (s *STRING) LastIndexByte(c byte) int
- func (s *STRING) LastIndexFunc(f func(rune) bool) int
- func (s *STRING) Left(length int) STRING
- func (s *STRING) Map(mapping func(rune) rune) STRING
- func (s *STRING) Mid(start int, length int) STRING
- func (s *STRING) Repeat(count int) STRING
- func (s *STRING) Replace(old string, newStr string, n int) STRING
- func (s *STRING) ReplaceAll(old string, newStr string) STRING
- func (s *STRING) Right(length int) STRING
- func (s *STRING) Split(sep string) []string
- func (s *STRING) SplitAfter(sep string) []string
- func (s *STRING) SplitAfterN(sep string, n int) []string
- func (s *STRING) SplitN(sep string, n int) []string
- func (s *STRING) String(value ...string) string
- func (s *STRING) SubStr(start int) STRING
- func (s *STRING) Title() STRING
- func (s *STRING) ToLower() STRING
- func (s *STRING) ToLowerSpecial(c unicode.SpecialCase) STRING
- func (s *STRING) ToTitleSpecial(c unicode.SpecialCase) STRING
- func (s *STRING) ToUpper() STRING
- func (s *STRING) ToUpperSpecial(c unicode.SpecialCase) STRING
- func (s *STRING) Trim(cutset string) STRING
- func (s *STRING) TrimFunc(f func(rune) bool) STRING
- func (s *STRING) TrimLeft(cutset string) STRING
- func (s *STRING) TrimLeftFunc(f func(rune) bool) STRING
- func (s *STRING) TrimPrefix(prefix string) STRING
- func (s *STRING) TrimRight(cutset string) STRING
- func (s *STRING) TrimRightFunc(f func(rune) bool) STRING
- func (s *STRING) TrimSpace() STRING
- func (s *STRING) TrimSuffix(suffix string) STRING
- type SUBSCRIBED_CALLBACK
- type SUBSCRIBE_CALLBACK
- type TOKEN
- type TOKEN_MANAGER
- func (m *TOKEN_MANAGER) AddToken(token string)
- func (m *TOKEN_MANAGER) DecryptToken(encryptedToken string) (TOKEN, error)
- func (m *TOKEN_MANAGER) NewToken() (string, time.Time, error)
- func (m *TOKEN_MANAGER) RefreshToken(oldToken string) string
- func (m *TOKEN_MANAGER) RemoveToken(token string) bool
- func (m *TOKEN_MANAGER) Shutdown()
- func (m *TOKEN_MANAGER) VerifyToken(token string) bool
- type UNSUBSCRIBED_CALLBACK
- type UNSUBSCRIBE_CALLBACK
- type WEBSOCKET_CLIENT
- type WEBSOCKET_CLIENT_CONFIG
- type WEBSOCKET_CLIENT_ERROR_HANDLER
- type WEBSOCKET_CLIENT_HANDLER
- type WEBSOCKET_CLIENT_MANAGER
- func (ws *WEBSOCKET_CLIENT_MANAGER) Connect(uri string, messageHandler WEBSOCKET_CLIENT_HANDLER) (string, error)
- func (ws *WEBSOCKET_CLIENT_MANAGER) ConnectEx(uri string, origin string, headers http.Header, dialer *websocket.Dialer, ...) (string, error)
- func (ws *WEBSOCKET_CLIENT_MANAGER) Send(clientID string, message []byte) error
- func (ws *WEBSOCKET_CLIENT_MANAGER) Shutdown(clientID string) error
- type WEBSOCKET_DATA
- type WEBSOCKET_DATA_HANDLER
- type WEBSOCKET_DISCONNECT_HANDLER
- type WEBSOCKET_ORIGIN_ALLOW_ALL
- type WEBSOCKET_ORIGIN_FILTER
- type WEBSOCKET_ORIGIN_MAP
- type WEBSOCKET_ORIGIN_REGEX
- type XML
- func (j *XML) Format(indent string) (string, error)
- func (j *XML) GetInteger(path string) (int, error)
- func (j *XML) GetMap(path string) (map[string]interface{}, error)
- func (j *XML) GetString(path string) (string, error)
- func (j *XML) GetValue(path string) (interface{}, error)
- func (j *XML) Marshal() (string, error)
- func (j *XML) Minify() (string, error)
- func (j *XML) SetInteger(path string, value int) (*XML, error)
- func (j *XML) SetString(path string, value string) (*XML, error)
- func (j *XML) SetValue(path string, value interface{}) (*XML, error)
- func (j *XML) Unmarshal(target interface{}) error
- func (j *XML) Validate() (bool, error)
- func (j *XML) WriteFile(filePath string, indent ...string) error
Constants ¶
const ( DEBUGGER_NONE = 0 DEBUGGER_ATTACHED = 1 DEBUGGER_DETACHED = 2 )
const ( SECRET_KEY = "X7K!2p9@A4z8#F1m5$C3b7%N6D2^q8&W0e9*R4t7(Y2u5)I8o1P3" LOG_LEVEL_DEBUG = 0 LOG_LEVEL_INFO = 1 LOG_LEVEL_WARN = 2 LOG_LEVEL_ERROR = 3 LOG_LEVEL_SECRET = 4 )
const ( OUTPUT_MODE_CONSOLE_ONLY = 0 OUTPUT_MODE_FILE_ONLY = 1 OUTPUT_MODE_BOTH = 2 )
const ( DEFAULT_MQTT_BROKER = "tcp://localhost:1883" DEFAULT_MQTT_QOS = 0 DEFAULT_MQTT_KEEP_ALIVE = 60 * time.Second DEFAULT_MQTT_CONNECTION_TIMEOUT = 30 * time.Second )
const ( HEADER_UPGRADE = "Upgrade" WEBSOCKET_UPGRADE = "websocket" DEFAULT_PORT = 80 DEFAULT_TLS_PORT = 443 DEFAULT_MQTT_SERVER_PORT = 1883 DEFAULT_MQTT_SERVER_HOST = "0.0.0.0" DEFAULT_TOKEN_SECRET_KEY = "XyZ098+7654321qwertyuiopASDFGHJKLzxcvbnm" DEFAULT_TOKEN_EXPIRATION = 5 * time.Minute )
const ( DEFAULT_SOAP_CONTENT_TYPE = "text/xml;charset=UTF-8" SOAP_MULTIPART_CONTENT_TYPE = "multipart/related" DEFAULT_BOUNDARY_PREFIX = "----=_Part_" )
const (
DEFAULT_HTTP_TIMEOUT = 30 * time.Second
)
Variables ¶
var (
AllowSelfSignedCertificates = false
)
var (
Debugger = NewDebugger()
)
var (
Logger = &LOGGER{}
)
var ( //go:embed soap/*.xml SOAP_TEMPLATES embed.FS )
Functions ¶
func SetAllowSelfSignedCertificates ¶
func SetAllowSelfSignedCertificates(allow bool)
Types ¶
type ACL_CHECK_CALLBACK ¶
type BOOST ¶
type BOOST struct {
// contains filtered or unexported fields
}
func (BOOST) AsDirectory ¶
func (BOOST) AsFilePath ¶
type DIRECTORY ¶
type DIRECTORY struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
func (*DIRECTORY) GetDirectories ¶
func (*DIRECTORY) GetWorkingDirectory ¶
func (*DIRECTORY) SetWorkingDirectory ¶
type DISCONNECT_CALLBACK ¶
type FILE ¶
type FILE struct {
// contains filtered or unexported fields
}
func (FILE) AppendString ¶
func (FILE) ReadString ¶
func (FILE) WriteString ¶
type FILEPATH ¶
type FILEPATH struct {
// contains filtered or unexported fields
}
func NewFilePath ¶
func (FILEPATH) EvalSymlinks ¶
func (FILEPATH) GetFileExtension ¶
func (FILEPATH) GetFileName ¶
func (FILEPATH) GetFileNameWithoutExtension ¶
func (FILEPATH) GetParentDirectory ¶
func (FILEPATH) VolumeName ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) GetTimeout ¶
func (*HTTP) SetTimeout ¶
func (*HTTP) UpdateClientTransport ¶
type IP_ADDRESSES ¶
func GetNetworkIpAddresses ¶
func GetNetworkIpAddresses() (IP_ADDRESSES, error)
type LOGGER ¶
type LOGGER struct {
FolderName string
ColorReset string
Red string
Green string
Yellow string
Blue string
Magenta string
Cyan string
White string
Gray string
RedBackground string
GreenBackground string
YellowBackground string
BlueBackground string
MagentaBackground string
CyanBackground string
WhiteBackground string
CurrentLevel int
OutputMode int
// contains filtered or unexported fields
}
func (*LOGGER) DecryptSecretLogs ¶
func (*LOGGER) GetGoroutineID ¶
type MQTT ¶
type MQTT struct {
// contains filtered or unexported fields
}
func (*MQTT) GetClientID ¶
func (*MQTT) GetConnectionTimeout ¶
func (*MQTT) GetKeepAlive ¶
func (*MQTT) GetPassword ¶
func (*MQTT) GetSubscriptions ¶
func (*MQTT) GetUsername ¶
func (*MQTT) IsConnected ¶
func (*MQTT) SetClientID ¶
func (*MQTT) SetConnectHandler ¶
func (*MQTT) SetConnectionTimeout ¶
func (*MQTT) SetDisconnectHandler ¶
func (*MQTT) SetMessageHandler ¶
func (m *MQTT) SetMessageHandler(handler func(*MQTT_MESSAGE)) error
func (*MQTT) SetPassword ¶
func (*MQTT) SetUsername ¶
func (*MQTT) Unsubscribe ¶
type MQTT_MESSAGE ¶
type MQTT_SERVER ¶
type MQTT_SERVER struct {
Server *server.Server
Host string
Port int
CertFile string
KeyFile string
TLSConfig *tls.Config
// contains filtered or unexported fields
}
func NewMQTTServer ¶
func NewMQTTServer(params ...interface{}) *MQTT_SERVER
func NewMQTTServerTLS ¶
func NewMQTTServerTLS(host string, port int) *MQTT_SERVER
func (*MQTT_SERVER) FormatError ¶
func (ms *MQTT_SERVER) FormatError(err error) string
func (*MQTT_SERVER) GenerateSelfSignedCertificate ¶
func (ms *MQTT_SERVER) GenerateSelfSignedCertificate() (*tls.Certificate, error)
func (*MQTT_SERVER) GetClientID ¶
func (ms *MQTT_SERVER) GetClientID(client *server.Client) string
func (*MQTT_SERVER) GetClientIP ¶
func (ms *MQTT_SERVER) GetClientIP(client *server.Client) (string, int)
func (*MQTT_SERVER) GetClientPort ¶
func (ms *MQTT_SERVER) GetClientPort(client *server.Client) int
func (*MQTT_SERVER) GetConnectPassword ¶
func (ms *MQTT_SERVER) GetConnectPassword(packet packets.Packet) string
func (*MQTT_SERVER) GetConnectUsername ¶
func (ms *MQTT_SERVER) GetConnectUsername(packet packets.Packet) string
func (*MQTT_SERVER) GetHost ¶
func (ms *MQTT_SERVER) GetHost() string
func (*MQTT_SERVER) GetMQTTMessage ¶
func (ms *MQTT_SERVER) GetMQTTMessage(packet packets.Packet) *MQTT_MESSAGE
func (*MQTT_SERVER) GetOperationType ¶
func (ms *MQTT_SERVER) GetOperationType(write bool) string
func (*MQTT_SERVER) GetPort ¶
func (ms *MQTT_SERVER) GetPort() int
func (*MQTT_SERVER) GetPublishPayload ¶
func (ms *MQTT_SERVER) GetPublishPayload(packet packets.Packet) string
func (*MQTT_SERVER) GetPublishTopic ¶
func (ms *MQTT_SERVER) GetPublishTopic(packet packets.Packet) string
func (*MQTT_SERVER) GetSubscriptionFilters ¶
func (ms *MQTT_SERVER) GetSubscriptionFilters(packet packets.Packet) []string
func (*MQTT_SERVER) GetSubscriptions ¶
func (ms *MQTT_SERVER) GetSubscriptions(packet packets.Packet) map[string]int
func (*MQTT_SERVER) IsRunning ¶
func (ms *MQTT_SERVER) IsRunning() bool
func (*MQTT_SERVER) Publish ¶
func (ms *MQTT_SERVER) Publish(topic string, payload string, params ...interface{}) error
func (*MQTT_SERVER) SetACLCheckCallback ¶
func (ms *MQTT_SERVER) SetACLCheckCallback(callback ACL_CHECK_CALLBACK) error
func (*MQTT_SERVER) SetAuthCallback ¶
func (ms *MQTT_SERVER) SetAuthCallback(callback AUTH_CALLBACK) error
func (*MQTT_SERVER) SetCertFile ¶
func (ms *MQTT_SERVER) SetCertFile(certFilePath string) error
func (*MQTT_SERVER) SetConnectCallback ¶
func (ms *MQTT_SERVER) SetConnectCallback(callback CONNECT_CALLBACK) error
func (*MQTT_SERVER) SetDisconnectCallback ¶
func (ms *MQTT_SERVER) SetDisconnectCallback(callback DISCONNECT_CALLBACK) error
func (*MQTT_SERVER) SetKeyFile ¶
func (ms *MQTT_SERVER) SetKeyFile(keyFilePath string) error
func (*MQTT_SERVER) SetPublishCallback ¶
func (ms *MQTT_SERVER) SetPublishCallback(callback PUBLISH_CALLBACK) error
func (*MQTT_SERVER) SetSubscribeCallback ¶
func (ms *MQTT_SERVER) SetSubscribeCallback(callback SUBSCRIBE_CALLBACK) error
func (*MQTT_SERVER) SetSubscribedCallback ¶
func (ms *MQTT_SERVER) SetSubscribedCallback(callback SUBSCRIBED_CALLBACK) error
func (*MQTT_SERVER) SetUnsubscribeCallback ¶
func (ms *MQTT_SERVER) SetUnsubscribeCallback(callback UNSUBSCRIBE_CALLBACK) error
func (*MQTT_SERVER) SetUnsubscribedCallback ¶
func (ms *MQTT_SERVER) SetUnsubscribedCallback(callback UNSUBSCRIBED_CALLBACK) error
func (*MQTT_SERVER) Start ¶
func (ms *MQTT_SERVER) Start(params ...interface{}) error
func (*MQTT_SERVER) Stop ¶
func (ms *MQTT_SERVER) Stop() error
type MQTT_SERVE_HOOK ¶
func (*MQTT_SERVE_HOOK) ID ¶
func (h *MQTT_SERVE_HOOK) ID() string
func (*MQTT_SERVE_HOOK) OnACLCheck ¶
func (*MQTT_SERVE_HOOK) OnConnectAuthenticate ¶
func (*MQTT_SERVE_HOOK) OnDisconnect ¶
func (h *MQTT_SERVE_HOOK) OnDisconnect(client *server.Client, err error, expire bool)
func (*MQTT_SERVE_HOOK) OnSubscribe ¶
func (*MQTT_SERVE_HOOK) OnSubscribed ¶
func (*MQTT_SERVE_HOOK) OnUnsubscribe ¶
func (*MQTT_SERVE_HOOK) OnUnsubscribed ¶
func (h *MQTT_SERVE_HOOK) OnUnsubscribed(client *server.Client, packet packets.Packet)
func (*MQTT_SERVE_HOOK) Provides ¶
func (h *MQTT_SERVE_HOOK) Provides(b byte) bool
type OS ¶
type OS struct{}
func (OS) Architecture ¶
func (OS) Environments ¶
func (OS) Executable ¶
func (OS) ExpandEnvironment ¶
func (OS) GetEnvironment ¶
func (OS) HasEnvironment ¶
func (OS) PathSeparator ¶
func (OS) TemporaryDirectory ¶
func (OS) UnsetEnvironment ¶
func (OS) UserHomeDirectory ¶
type PROCESS ¶
type PROCESS struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func (PROCESS) ArgumentCount ¶
func (PROCESS) CommandExists ¶
func (PROCESS) Environment ¶
func (PROCESS) ExecuteCommand ¶
func (PROCESS) ExecuteCommandAndWait ¶
func (PROCESS) ExecuteCommandWithOutput ¶
func (PROCESS) GetArgument ¶
func (PROCESS) GetArgumentValue ¶
func (PROCESS) GetEnvironment ¶
func (PROCESS) GetParentProcessID ¶
func (PROCESS) GetProcessID ¶
func (PROCESS) HasArgument ¶
func (PROCESS) ParentProcessID ¶
func (PROCESS) WaitProcess ¶
func (p PROCESS) WaitProcess() (*os.ProcessState, error)
func (PROCESS) WorkingDirectory ¶
type REQUEST_HANDLER ¶
type REQUEST_HANDLER func(request *http.Request, response http.ResponseWriter) error
type ROUTE ¶
type ROUTE struct {
Method string
Pattern string
Handler REQUEST_HANDLER
}
type SEEDED_READER ¶
SEEDED_READER implements io.Reader using a secretKey as seed This allows generating deterministic random numbers based on the secretKey Same secretKey will produce same random sequence
type SERVE ¶
type SERVE struct {
// contains filtered or unexported fields
}
func (*SERVE) AddStaticDirectory ¶
func (*SERVE) CheckPortAvailable ¶
func (*SERVE) EnableRedirectToTLS ¶
func (*SERVE) GenerateSelfSignedCertificate ¶
func (s *SERVE) GenerateSelfSignedCertificate() (*tls.Certificate, error)
func (*SERVE) GenerateSelfSignedCertificatePFX ¶
func (*SERVE) GetAvailablePort ¶
func (*SERVE) GetStaticDirectory ¶
func (*SERVE) On ¶
func (s *SERVE) On(method string, pattern string, handler REQUEST_HANDLER) *SERVE
func (*SERVE) OnBeforeStaticServe ¶
func (s *SERVE) OnBeforeStaticServe(callback BEFORE_SERVE_STATIC_CALLBACK_HANDLER) *SERVE
OnBeforeStaticServe sets the before static serve callback
func (*SERVE) OnStaticServe ¶
func (s *SERVE) OnStaticServe(callback SERVE_STATIC_CALLBACK_HANDLER) *SERVE
OnStaticServe sets the static serve callback
func (*SERVE) OnWebSocket ¶
func (s *SERVE) OnWebSocket(pattern string, dataHandler WEBSOCKET_DATA_HANDLER) *SERVE
func (*SERVE) OnWebSocketEx ¶
func (s *SERVE) OnWebSocketEx(pattern string, filter interface{}, dataHandler WEBSOCKET_DATA_HANDLER, disconnectHandler WEBSOCKET_DISCONNECT_HANDLER) *SERVE
func (*SERVE) RemoveStaticDirectory ¶
func (*SERVE) SetContext ¶
type SOAP ¶
type SOAP struct {
*HTTP
}
func (*SOAP) CallWithAttachment ¶
func (*SOAP) CallWithHeader ¶
func (*SOAP) ExtractBody ¶
type SQLITE ¶
func (*SQLITE) BeginTransaction ¶
func (*SQLITE) DesensitizeColumn ¶
func (*SQLITE) ExecNonQueries ¶
func (sqlite *SQLITE) ExecNonQueries(queries []string, callback SQLITE_EXEC_CALLBACK) error
func (*SQLITE) ExecNonQuery ¶
func (*SQLITE) ExecuteQuery ¶
func (sqlite *SQLITE) ExecuteQuery(query string) ([]SQLITE_VALUE, error)
func (*SQLITE) Parse ¶
func (sqlite *SQLITE) Parse(data interface{}) SQLITE_VALUE
type SQLITE_EXEC_CALLBACK ¶
type SQLITE_VALUE ¶
type SQLITE_VALUE struct {
Name string
Value interface{}
}
func (SQLITE_VALUE) ToBool ¶
func (value SQLITE_VALUE) ToBool() bool
func (SQLITE_VALUE) ToFloat ¶
func (value SQLITE_VALUE) ToFloat() float64
func (SQLITE_VALUE) ToInt ¶
func (value SQLITE_VALUE) ToInt() int
func (SQLITE_VALUE) ToString ¶
func (value SQLITE_VALUE) ToString() string
func (SQLITE_VALUE) Type ¶
func (value SQLITE_VALUE) Type() string
type STRING ¶
type STRING struct {
// contains filtered or unexported fields
}
func (*STRING) ContainsAny ¶
func (*STRING) ContainsRune ¶
func (*STRING) EqualsIgnoreCase ¶
func (*STRING) LastIndexAny ¶
func (*STRING) LastIndexByte ¶
func (*STRING) SplitAfter ¶
func (*STRING) ToLowerSpecial ¶
func (s *STRING) ToLowerSpecial(c unicode.SpecialCase) STRING
func (*STRING) ToTitleSpecial ¶
func (s *STRING) ToTitleSpecial(c unicode.SpecialCase) STRING
func (*STRING) ToUpperSpecial ¶
func (s *STRING) ToUpperSpecial(c unicode.SpecialCase) STRING
func (*STRING) TrimPrefix ¶
func (*STRING) TrimSuffix ¶
type SUBSCRIBED_CALLBACK ¶
type SUBSCRIBE_CALLBACK ¶
type TOKEN_MANAGER ¶
TOKEN_MANAGER handles token operations with thread safety
func NewTokenManager ¶
func NewTokenManager(server *SERVE, secretKey ...string) *TOKEN_MANAGER
func (*TOKEN_MANAGER) AddToken ¶
func (m *TOKEN_MANAGER) AddToken(token string)
func (*TOKEN_MANAGER) DecryptToken ¶
func (m *TOKEN_MANAGER) DecryptToken(encryptedToken string) (TOKEN, error)
func (*TOKEN_MANAGER) RefreshToken ¶
func (m *TOKEN_MANAGER) RefreshToken(oldToken string) string
func (*TOKEN_MANAGER) RemoveToken ¶
func (m *TOKEN_MANAGER) RemoveToken(token string) bool
func (*TOKEN_MANAGER) Shutdown ¶
func (m *TOKEN_MANAGER) Shutdown()
func (*TOKEN_MANAGER) VerifyToken ¶
func (m *TOKEN_MANAGER) VerifyToken(token string) bool
type UNSUBSCRIBED_CALLBACK ¶
type UNSUBSCRIBE_CALLBACK ¶
type WEBSOCKET_CLIENT ¶
type WEBSOCKET_CLIENT struct {
Config WEBSOCKET_CLIENT_CONFIG
Conn *websocket.Conn
MessageHandler WEBSOCKET_CLIENT_HANDLER
ErrorHandler WEBSOCKET_CLIENT_ERROR_HANDLER
SendChan chan []byte
IsConnected bool
ReconnectCount int
Mutex sync.Mutex
}
type WEBSOCKET_CLIENT_CONFIG ¶
type WEBSOCKET_CLIENT_ERROR_HANDLER ¶
type WEBSOCKET_CLIENT_ERROR_HANDLER func(err error)
type WEBSOCKET_CLIENT_MANAGER ¶
type WEBSOCKET_CLIENT_MANAGER struct {
Clients map[string]*WEBSOCKET_CLIENT
DefaultConfig WEBSOCKET_CLIENT_CONFIG
Mutex sync.Mutex
}
func NewWebSocket ¶
func NewWebSocket() *WEBSOCKET_CLIENT_MANAGER
func (*WEBSOCKET_CLIENT_MANAGER) Connect ¶
func (ws *WEBSOCKET_CLIENT_MANAGER) Connect(uri string, messageHandler WEBSOCKET_CLIENT_HANDLER) (string, error)
func (*WEBSOCKET_CLIENT_MANAGER) Send ¶
func (ws *WEBSOCKET_CLIENT_MANAGER) Send(clientID string, message []byte) error
func (*WEBSOCKET_CLIENT_MANAGER) Shutdown ¶
func (ws *WEBSOCKET_CLIENT_MANAGER) Shutdown(clientID string) error
type WEBSOCKET_DATA ¶
type WEBSOCKET_DATA struct {
Pattern string
Handler WEBSOCKET_DATA_HANDLER
DisconnectHandler WEBSOCKET_DISCONNECT_HANDLER
Filter WEBSOCKET_ORIGIN_FILTER
}
type WEBSOCKET_DATA_HANDLER ¶
type WEBSOCKET_ORIGIN_ALLOW_ALL ¶
type WEBSOCKET_ORIGIN_ALLOW_ALL struct{}
func (WEBSOCKET_ORIGIN_ALLOW_ALL) Allow ¶
func (a WEBSOCKET_ORIGIN_ALLOW_ALL) Allow(origin string) bool
type WEBSOCKET_ORIGIN_FILTER ¶
type WEBSOCKET_ORIGIN_MAP ¶
func (WEBSOCKET_ORIGIN_MAP) Allow ¶
func (m WEBSOCKET_ORIGIN_MAP) Allow(origin string) bool
type WEBSOCKET_ORIGIN_REGEX ¶
func (*WEBSOCKET_ORIGIN_REGEX) Allow ¶
func (r *WEBSOCKET_ORIGIN_REGEX) Allow(origin string) bool
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package main File: network.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/examples/network.go Author: Vibe Coding Created: 2025/12/20 12:31:58 Description: Example for network functionality --------------------------------------------------------------------------------
|
Package main File: network.go Url: https://github.com/xiang-tai-duo/go-boost/blob/master/examples/network.go Author: Vibe Coding Created: 2025/12/20 12:31:58 Description: Example for network functionality -------------------------------------------------------------------------------- |