Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectionResponse ¶
type CollectionResponse map[string]interface{}
func (CollectionResponse) DisplayHeaders ¶
func (r CollectionResponse) DisplayHeaders() DisplayHeaders
func (CollectionResponse) Items ¶
func (r CollectionResponse) Items() []map[string]interface{}
func (CollectionResponse) Message ¶
func (r CollectionResponse) Message() string
type DisplayHeaders ¶
type DisplayHeaders []KeyAndName
func (DisplayHeaders) Names ¶
func (dh DisplayHeaders) Names() []string
type HasOrgResponse ¶
type HasOrgResponse struct { MessageResponse Organization Organization `json:"organization"` }
type KeyAndName ¶
type KeyAndName struct{ Key, Name string }
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
type OrgIdentifier ¶
type OrgIdentifier string
func OrgIdentifierFromId ¶
func OrgIdentifierFromId(id int) OrgIdentifier
func OrgIdentifierFromSlug ¶
func OrgIdentifierFromSlug(slug string) OrgIdentifier
type Organization ¶
type Organization struct { // The primary key of the organization. // Safe to store on the client. Id int `json:"id" mapstructure:"id"` // The name of the org. Can change. Name string `json:"name" mapstructure:"name"` // URL-safe version of the organization name. Key string `json:"key" mapstructure:"key"` }
func (Organization) DisplayString ¶
func (o Organization) DisplayString() string
type RunQueryOutput ¶
type RunQueryOutput struct { // Use RawMessage to avoid deserializing the JSON right away. // This allows us to render maps and certain other types verbatim. Rows [][]json.RawMessage `json:"rows"` Headers []string `json:"headers"` MaxRowsReached bool `json:"max_rows_reached"` }
type SingleResponse ¶
type SingleResponse map[string]interface{}
func (SingleResponse) DisplayHeaders ¶
func (r SingleResponse) DisplayHeaders() DisplayHeaders
func (SingleResponse) Fields ¶
func (r SingleResponse) Fields() map[string]interface{}
func (SingleResponse) Message ¶
func (r SingleResponse) Message() string
Click to show internal directories.
Click to hide internal directories.