universal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType int
const (
	Default ContentType = iota
	FormUrlencoded
	ApplicationJSON
)

type HttpMethod

type HttpMethod int
const (
	GET HttpMethod = iota
	HEAD
	POST
	PUT
	DELETE
)

type RequestUniversal

type RequestUniversal struct {
	ServiceName string
	Action      string
	Version     string
	HttpMethod  HttpMethod
	ContentType ContentType
}

type Universal

type Universal struct {
	Session *session.Session
}

func New

func New(session *session.Session) *Universal

func (*Universal) DoCall

func (u *Universal) DoCall(info RequestUniversal, input *map[string]interface{}) (output *map[string]interface{}, err error)

func (*Universal) DoCallWithType

func (u *Universal) DoCallWithType(info RequestUniversal, input interface{}, output interface{}) (err error)

Jump to

Keyboard shortcuts

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