web

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(action string) (*string, error)

func TestMakeRequest

func TestMakeRequest(action string) (*string, error)

func TestRequestFunction

func TestRequestFunction() (*string, error)

Types

type OasaError

type OasaError struct {
	Error_Code  int32
	Error_Descr string
}

func (OasaError) Error

func (e OasaError) Error() string

type OasaResponse

type OasaResponse struct {
	Error error
	Data  map[string]interface{}
}

func GeneralRequest added in v0.1.2

func GeneralRequest(req OpswHttpRequest, responseModel any) *OasaResponse

func OasaRequestApi

func OasaRequestApi(action string, extraParams map[string]interface{}) *OasaResponse

type OpswHttpRequest

type OpswHttpRequest struct {
	Method   string
	Headers  map[string]string
	Body     io.Reader
	Endpoint string
}

Jump to

Keyboard shortcuts

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