data

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 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 Category

type Category struct {
	Category string  `yaml:"category"`
	Routes   []Route `yaml:"routes"`
	Vars     []Var   `yaml:"vars"`
}

type File added in v0.0.17

type File struct {
	ID        string            `json:"id"`
	Filename  string            `json:"filename"`
	Label     string            `json:"label"`
	Dir       string            `json:"dir"`
	Type      string            `json:"type"`
	Mime      string            `json:"mime"`
	Url       string            `json:"url"`
	IsPublic  bool              `json:"is_public"`
	IsListed  bool              `json:"is_listed"`
	Metadata  map[string]string `json:"metadata"`
	CreatedAt int64             `json:"created_at"`
	UpdatedAt int64             `json:"updated_at"`
}

type Metadata

type Metadata struct {
	Name   string  `yaml:"name"`
	Secret *string `yaml:"secret"`
}

type Route

type Route struct {
	Path          string  `yaml:"path"`
	Category      string  `yaml:"-"`
	InlineCss     bool    `yaml:"inlineCss"`
	TemplatePath  string  `yaml:"templatePath"`
	Output        string  `yaml:"output"`
	QueryPath     *string `yaml:"queryPath"`
	Vars          map[string]interface{}
	ResolvedQuery *string
}

type Signature added in v0.0.17

type Signature struct {
	ExpiresAt int64  `json:"expires_at"`
	Signature string `json:"signature"`
}

type TemplateDefinition

type TemplateDefinition struct {
	ApiVersion string     `yaml:"apiVersion"`
	Kind       string     `yaml:"kind"`
	Metadata   Metadata   `yaml:"metadata"`
	Config     []Category `yaml:"config"`
}

type Tenant

type Tenant struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type User

type User struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	Email      string `json:"email"`
	TenantID   string `json:"tenant_id"`
	TenantName string `json:"tenant_name"`
	// contains filtered or unexported fields
}

func (*User) GetAccessToken

func (u *User) GetAccessToken() string

func (*User) MarshalJSON added in v0.0.18

func (u *User) MarshalJSON() ([]byte, error)

func (*User) SetAccessToken

func (u *User) SetAccessToken(token string)

func (*User) UnmarshalJSON added in v0.0.18

func (u *User) UnmarshalJSON(data []byte) error

type Var

type Var struct {
	Name  string      `yaml:"name"`
	Value interface{} `yaml:"value"`
}

Jump to

Keyboard shortcuts

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