Documentation ¶
Index ¶
- func MakeJSONRequest[T any](ctx context.Context, params RequestParameters, config *glair.Config) (T, error)
- func MakeMultipartRequest[T any](ctx context.Context, params RequestParameters, config *glair.Config) (T, error)
- func ReadFile(file interface{}) (*os.File, error)
- type RequestParameters
- type RequestPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeJSONRequest ¶
func MakeJSONRequest[T any]( ctx context.Context, params RequestParameters, config *glair.Config, ) (T, error)
MakeJSONRequest creates and sends application/json request to a specified GLAIR Vision service endpoint.
func MakeMultipartRequest ¶
func MakeMultipartRequest[T any]( ctx context.Context, params RequestParameters, config *glair.Config, ) (T, error)
MakeMultipartRequest creates and sends multipart/formdata request to a specified GLAIR Vision service endpoint.
Types ¶
type RequestParameters ¶
type RequestPayload ¶
type RequestPayload struct { RequestParameters Header map[string]string Body io.Reader }
Click to show internal directories.
Click to hide internal directories.