Documentation
¶
Index ¶
- Variables
- func NewNetworkClient(ctx ftp_context.Context) (cl *http.Client, err log_item.LogErr)
- type NetworkEngine
- func (ne *NetworkEngine) BaseUrl() string
- func (ne *NetworkEngine) GetCookie(route string, cookie_name string) (cookie *http.Cookie, err error)
- func (ne *NetworkEngine) GetCookies(route string) (cookies []*http.Cookie, err error)
- func (ne *NetworkEngine) GetJson(route string, out_json_item any) (err error)
- func (ne *NetworkEngine) Ping(ping_url string, tries int, v ...*map[string]any) error
- func (ne *NetworkEngine) PostBytes(route string, data []byte, out_json_item any) (err error)
- func (ne *NetworkEngine) PostJson(route string, in_json_item any, out_json_item any) (err error)
- func (ne *NetworkEngine) SetCookie(route string, cookies ...*http.Cookie) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = logging.Logger
Functions ¶
func NewNetworkClient ¶
Types ¶
type NetworkEngine ¶
type NetworkEngine struct {
sync.Mutex
Client *http.Client
Map ftp_base.MutexedMap[*http.Response]
// contains filtered or unexported fields
}
func NewNetworkEngine ¶
func NewNetworkEngine(client *http.Client, base_url string) *NetworkEngine
func (*NetworkEngine) BaseUrl ¶
func (ne *NetworkEngine) BaseUrl() string
func (*NetworkEngine) GetCookies ¶
func (ne *NetworkEngine) GetCookies(route string) (cookies []*http.Cookie, err error)
func (*NetworkEngine) GetJson ¶
func (ne *NetworkEngine) GetJson(route string, out_json_item any) (err error)
func (*NetworkEngine) PostBytes ¶
func (ne *NetworkEngine) PostBytes(route string, data []byte, out_json_item any) (err error)
Click to show internal directories.
Click to hide internal directories.