tools

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPing

func CheckPing(ip string) (status bool, err error)

func DeleteStrSliceEle

func DeleteStrSliceEle(items []string, item string) []string

func FalconToken

func FalconToken() string

func GenHostNameSlice

func GenHostNameSlice(sliceKey []string, path string) (hosts []string)

func GetDstSliceNotInSrcSlice

func GetDstSliceNotInSrcSlice(src []string, dst []string) (diffSlice []string)

func HttpApiDelete

func HttpApiDelete(fullApiUrl string, params string, tokenType string) (io.ReadCloser, error)

func HttpApiGet

func HttpApiGet(fullApiUrl string, params string, tokenType string) (io.ReadCloser, error)

func HttpApiPost

func HttpApiPost(fullApiUrl string, params []byte, tokenType string) (io.ReadCloser, error)

func HttpApiPut

func HttpApiPut(fullApiUrl string, jsonData []byte, tokenType string) (status bool, err error)

func IntInSlice

func IntInSlice(a int, list []int) bool

func SliceContains

func SliceContains(str string, s []string) bool

Types

type TimeStruct

type TimeStruct struct {
	Hour   string
	Minite string
}

func GetNow

func GetNow() (nowTime TimeStruct)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL