infobip

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	StatusCode   int
	RequestError RequestError `json:"requestError"`
}

func (ApiError) Error

func (err ApiError) Error() string

type Authorizer

type Authorizer interface {
	Authorization() string
}

func NewApiKeyCredentials

func NewApiKeyCredentials(apiKey string) Authorizer

func NewBasicCredentials

func NewBasicCredentials(username string, password string) Authorizer

func NewIBSSOCredentials

func NewIBSSOCredentials(token string) Authorizer

type AuthorizerFunc

type AuthorizerFunc func() string

func (AuthorizerFunc) Authorization

func (f AuthorizerFunc) Authorization() string

type RequestError

type RequestError struct {
	ServiceException ServiceException `json:"serviceException"`
}

type ServiceException

type ServiceException struct {
	MessageID string `json:"messageId"`
	Text      string `json:"text"`
}

type Time

type Time struct {
	T time.Time
}

func (Time) MarshalJSON

func (ibtime Time) MarshalJSON() ([]byte, error)

func (*Time) UnmarshalJSON

func (ibtime *Time) UnmarshalJSON(data []byte) error

type TimeUnit

type TimeUnit int
const (
	TU_NANOSECONDS TimeUnit = iota
	TU_MICROSECONDS
	TU_MILLISECONDS
	TU_SECONDS
	TU_MINUTES
	TU_HOURS
	TU_DAYS
)

func (TimeUnit) MarshalJSON

func (val TimeUnit) MarshalJSON() ([]byte, error)

func (TimeUnit) String

func (val TimeUnit) String() string

func (*TimeUnit) UnmarshalJSON

func (val *TimeUnit) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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