Documentation
¶
Index ¶
- Variables
- func RobotCurlBase(method string, protocol string, host string, url string, ...) (interface{}, error)
- func ToString(value interface{}) string
- type NetService
- func (s *NetService) Curl(method string, url string, header map[string]string, params interface{}) ([]byte, error)
- func (s *NetService) Get(url string) []byte
- func (s *NetService) PostWithFormData(method, url string, header map[string]string, postData *map[string]string) ([]byte, error)
- func (s *NetService) RobotCurl(method string, url string, header map[string]string, ...) (interface{}, error)
- type Param
- type Result
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RobotCurlBase ¶
Types ¶
type NetService ¶
type NetService struct { }
func NewCurl ¶
func NewCurl() (*NetService, error)
func NewNetService ¶
func NewNetService() NetService
func (*NetService) Get ¶
func (s *NetService) Get(url string) []byte
func (*NetService) PostWithFormData ¶
type Param ¶
type Param struct { fx.In NetService *NetService `name:"NetService"` }
type Result ¶
type Result struct { fx.Out NetService *NetService `name:"NetService"` }
func (*Result) Execute ¶
func (f *Result) Execute(service *NetService) error
Click to show internal directories.
Click to hide internal directories.