data

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 0 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 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"`
	QueryPath     *string `yaml:"queryPath"`
	Vars          map[string]interface{}
	ResolvedQuery *string
}

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) SetAccessToken

func (u *User) SetAccessToken(token string)

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