schema

package
v0.0.0-...-50815b3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// FieldTypeLongText is a type of a field of an event
	FieldTypeLongText string = "long_text"
	// FieldTypeShortText is a type of a field of an event
	FieldTypeShortText string = "short_text"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateClub

type CreateClub struct {
	Name string
	Desc string
}

CreateClub : defines a request to create a new club

type CreateEvent

type CreateEvent struct {
	Name        string       `json:"name"`
	EventID     string       `json:"event_id"`
	Description string       `json:"description"`
	Fields      []FieldProps `json:"fields"`
}

CreateEvent defines a request to create an event

type CreatePeriod

type CreatePeriod struct {
	Name  string `json:"name"`
	Start string `json:"start"`
	End   string `json:"end"`
}

CreatePeriod : defines a request to create an period

type FieldProps

type FieldProps struct {
	Type string `json:"type"`

	// Properties is one of LongText or ShortText in protobuf
	Properties json.RawMessage `json:"properties"`
}

FieldProps defines a field of an event

Jump to

Keyboard shortcuts

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