response

package
v0.0.0-...-46454a7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Value bool `json:"-"`
}

Bool response struct

func (*Bool) MarshalJSON

func (s *Bool) MarshalJSON() ([]byte, error)

MarshalJSON custom implementation

type Entity

type Entity struct {
	Object string      `json:"-"`
	Entity interface{} `json:"-"`
}

Entity struct

func (*Entity) MarshalJSON

func (s *Entity) MarshalJSON() ([]byte, error)

MarshalJSON custom implementation

type List

type List struct {
	Object     string      `json:"object"`
	Data       interface{} `json:"data"`
	Page       int         `json:"page"`
	Limit      int         `json:"limit"`
	TotalItems int         `json:"total_items,omitempty"`
	HasMore    bool        `json:"has_more"`
}

List struct

func (*List) HasMoreItems

func (s *List) HasMoreItems() bool

HasMoreItems ...

func (*List) MarshalJSON

func (s *List) MarshalJSON() ([]byte, error)

MarshalJSON custom implementation

Jump to

Keyboard shortcuts

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