common

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpPost

func HttpPost(ctx context.Context, url string, headers map[string][]string, body io.Reader, responseObjPtr interface{}) error

func IsEmpty

func IsEmpty(str string) bool

Types

type ErrorCode

type ErrorCode int
const (
	AlreadyExists ErrorCode = iota + 100000
	NotFound
)

type HTTPContentType

type HTTPContentType string
const (
	HTTPContentTypeAppJSON HTTPContentType = "application/json"
)

type IAMError

type IAMError struct {
	Message string    `json:"message"`
	Code    ErrorCode `json:"error_code"`
}

func (IAMError) Error

func (e IAMError) Error() string

Jump to

Keyboard shortcuts

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