Documentation
¶
Index ¶
- func ExistingInArray(in interface{}, f interface{}) bool
- func ExistingKeyInMap(in interface{}, key string) bool
- func FetchBingImage() (img string, copyright string, err error)
- func GenerateSelfSignCert()
- func GenerateSelfSignCertWithErrorHandle() error
- func GetEgressInterfaceIpv4Addr() (addr string, err error)
- func GetSecureInterfaceIpv4Addr() (addr string, err error)
- func GetTimeZone() (loc *time.Location)
- func HttpJSONRequestWithBytesResponse(method, fullURL, token string, requestData io.Reader) ([]byte, error)
- func HttpPing(method, fullUrl string) bool
- func HttpPingWithCheckStatusCode(method, fullUrl string, checkWithStatusCode int) bool
- func HttpRequestWithBytesResponse(r types.HttpRequestType) ([]byte, error)
- func Int64ToString(s int64) (v string)
- func InterfaceToMap(in interface{}, snakeKey bool) map[string]interface{}
- func InterfaceToString(v interface{}) (s string, err error)
- func Ipv4InCidr(cidr, ip string) bool
- func IsIpv4(ip string) bool
- func IsPrivateIPAddress(ip string) bool
- func IsRootPrivilege() (v bool)
- func ParseURL(link string) (schema, host, port string, err error)
- func ResolveAllIp(hostname string) (address []string, err error)
- func ResolveIp(hostname string) (address string, err error)
- func SecretGenerator(l int) string
- func Sha512encode(w string) string
- func StringContains(s []string, str string) bool
- func StringToInt64(s string) (v int64, err error)
- func StringToUInt64(s string) (v uint64, err error)
- func StructToMap(in any, snakeKey bool) map[string]any
- func Transcode(in, out interface{})
- func ValidTimeZone(tz string) bool
- func VerifyTimeZone()
- type AppCredentialsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistingInArray ¶
func ExistingInArray(in interface{}, f interface{}) bool
func ExistingKeyInMap ¶
func FetchBingImage ¶
func GenerateSelfSignCert ¶
func GenerateSelfSignCert()
func GenerateSelfSignCertWithErrorHandle ¶
func GenerateSelfSignCertWithErrorHandle() error
func GetTimeZone ¶
func HttpRequestWithBytesResponse ¶
func HttpRequestWithBytesResponse(r types.HttpRequestType) ([]byte, error)
func Int64ToString ¶
func InterfaceToMap ¶
func InterfaceToString ¶
func Ipv4InCidr ¶
func IsPrivateIPAddress ¶
func IsRootPrivilege ¶
func IsRootPrivilege() (v bool)
func ResolveAllIp ¶
func SecretGenerator ¶
func Sha512encode ¶
func StringContains ¶
func StringToInt64 ¶
func StringToUInt64 ¶
func ValidTimeZone ¶
func VerifyTimeZone ¶
func VerifyTimeZone()
Types ¶
type AppCredentialsType ¶
type AppCredentialsType struct {
APIToken string `yaml:"api_token"`
}
var (
AppCredentials AppCredentialsType = AppCredentialsType{}
)
Click to show internal directories.
Click to hide internal directories.