types

package
v0.0.0-...-72f4783 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompaniesResponse

type CompaniesResponse struct {
	Response
	Result []crm.Company `json:"result"`
}

type ContactsResponse

type ContactsResponse struct {
	Response
	Result []crm.Contact `json:"result"`
}

type IntResponse

type IntResponse struct {
	Response
	Result int64 `json:"result,string"`
}

type MethodsRequest

type MethodsRequest struct {
	Full  bool   `json:"full" form:"full"`
	Scope string `json:"scope" form:"scope"`
}

type MethodsResponse

type MethodsResponse struct {
	Response
	Result []string
}

type Response

type Response struct {
	Result interface{}  `json:"result"`
	Time   ResponseTime `json:"time"`
	Total  int          `json:"total"`
	Next   int          `json:"next"`
}

func (*Response) ToInt

func (r *Response) ToInt() (*IntResponse, error)

type ResponseError

type ResponseError struct {
	Code        string `json:"error"`
	Description string `json:"error_description"`
}

type ResponseTime

type ResponseTime struct {
	Start      UnixMicroTime
	Finish     UnixMicroTime
	Duration   SecDuration
	Processing SecDuration
}

type SecDuration

type SecDuration time.Duration

func (*SecDuration) UnmarshalJSON

func (d *SecDuration) UnmarshalJSON(data []byte) error

type StringResponse

type StringResponse struct {
	Response
	Result string `json:"result"`
}

type UnixMicroTime

type UnixMicroTime time.Time

func (*UnixMicroTime) UnmarshalJSON

func (t *UnixMicroTime) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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