JsonType

package
v0.0.0-...-11fd557 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolResponse

type BoolResponse struct {
	Ok     bool   `json:"ok"`
	Result bool   `json:"result"`
	Error  string `json:"description"`
}

BoolResponse struct, contains a boolean value

type IntResponse

type IntResponse struct {
	Ok     bool   `json:"ok"`
	Result int    `json:"result"`
	Error  string `json:"description"`
}

IntResponse struct, contains an int value

type PartialParse

type PartialParse struct {
	Ok    bool                       `json:"ok"`
	Poll  map[string]json.RawMessage `json:"result"`
	Error string                     `json:"description"`
}

PartialParse struct, parses all to a json rawMessage

type PollArrayResponse

type PollArrayResponse struct {
	Ok        bool          `json:"ok"`
	PollArray []*polls.Poll `json:"result"`
	Error     string        `json:"description"`
}

PollArrayResponse struct, contains an array of Poll

type PollResponse

type PollResponse struct {
	Ok    bool        `json:"ok"`
	Poll  *polls.Poll `json:"result"`
	Error string      `json:"description"`
}

PollResponse struct, contains a Poll

type StringResponse

type StringResponse struct {
	Ok     bool   `json:"ok"`
	Result string `json:"result"`
	Error  string `json:"description"`
}

StringResponse struct, contains a string

Jump to

Keyboard shortcuts

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