types

package
v0.0.0-...-dbfa471 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SPtr

func SPtr(s string) *string

Types

type AuthToken

type AuthToken string

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

Jump to

Keyboard shortcuts

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