models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 51

Documentation

Index

Constants

View Source
const Default_ThemeTemplate_Engine string = "html"
View Source
const Default_ThemeTemplate_HideContent bool = false

Variables

View Source
var ContentMultiple_DropdownType_name = map[int32]string{
	0: "unknown",
	1: "radio",
	2: "dropdown",
}
View Source
var ContentMultiple_DropdownType_value = map[string]int32{
	"unknown":  0,
	"radio":    1,
	"dropdown": 2,
}
View Source
var ContentTextType_name = map[int32]string{
	0: "text",
	1: "markdown",
	2: "html",
}
View Source
var ContentTextType_value = map[string]int32{
	"text":     0,
	"markdown": 1,
	"html":     2,
}

Functions

This section is empty.

Types

type Author

type Author struct {
	Uuid             *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Author) Descriptor

func (*Author) Descriptor() ([]byte, []int)

func (*Author) GetUuid

func (m *Author) GetUuid() string

func (*Author) ProtoMessage

func (*Author) ProtoMessage()

func (*Author) Reset

func (m *Author) Reset()

func (*Author) SetUuid

func (m *Author) SetUuid(v *string)

func (*Author) String

func (m *Author) String() string

type Content

type Content struct {
	Uuid       *string    `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Key        *string    `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
	Value      *string    `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
	Timestamps *Timestamp `protobuf:"bytes,5,opt,name=timestamps" json:"timestamps,omitempty"`
	// Types that are valid to be assigned to Type:
	//	*Content_Short
	//	*Content_Text
	//	*Content_Multiple
	Type             IsContent_Type `protobuf_oneof:"type"`
	XXX_unrecognized []byte         `json:"-"`
}

versioned? drafts?

func (*Content) Descriptor

func (*Content) Descriptor() ([]byte, []int)

func (*Content) GetKey

func (m *Content) GetKey() string

func (*Content) GetMultiple

func (m *Content) GetMultiple() *ContentMultiple

func (*Content) GetShort

func (m *Content) GetShort() *ContentString

func (*Content) GetText

func (m *Content) GetText() *ContentText

func (*Content) GetTimestamps

func (m *Content) GetTimestamps() *Timestamp

func (*Content) GetType

func (m *Content) GetType() IsContent_Type

func (*Content) GetUuid

func (m *Content) GetUuid() string

func (*Content) GetValue

func (m *Content) GetValue() string

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) Reset

func (m *Content) Reset()

func (*Content) SetKey

func (m *Content) SetKey(v *string)

func (*Content) SetTimestamps

func (m *Content) SetTimestamps(v *Timestamp)

func (*Content) SetUuid

func (m *Content) SetUuid(v *string)

func (*Content) SetValue

func (m *Content) SetValue(v *string)

func (*Content) String

func (m *Content) String() string

func (*Content) XXX_OneofFuncs

func (*Content) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ContentMultiple

type ContentMultiple struct {
	Title            *string                       `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Options          []string                      `protobuf:"bytes,2,rep,name=options" json:"options,omitempty"`
	Type             *ContentMultiple_DropdownType `protobuf:"varint,3,opt,name=type,enum=ketchup.models.ContentMultiple_DropdownType,def=2" json:"type,omitempty"`
	XXX_unrecognized []byte                        `json:"-"`
}

func (*ContentMultiple) Descriptor

func (*ContentMultiple) Descriptor() ([]byte, []int)

func (*ContentMultiple) GetOptions

func (m *ContentMultiple) GetOptions() []string

func (*ContentMultiple) GetTitle

func (m *ContentMultiple) GetTitle() string

func (*ContentMultiple) GetType

func (*ContentMultiple) ProtoMessage

func (*ContentMultiple) ProtoMessage()

func (*ContentMultiple) Reset

func (m *ContentMultiple) Reset()

func (*ContentMultiple) SetOptions

func (m *ContentMultiple) SetOptions(v []string)

func (*ContentMultiple) SetTitle

func (m *ContentMultiple) SetTitle(v *string)

func (*ContentMultiple) SetType

func (*ContentMultiple) String

func (m *ContentMultiple) String() string

type ContentMultiple_DropdownType

type ContentMultiple_DropdownType int32
const (
	ContentMultiple_unknown  ContentMultiple_DropdownType = 0
	ContentMultiple_radio    ContentMultiple_DropdownType = 1
	ContentMultiple_dropdown ContentMultiple_DropdownType = 2
)
const Default_ContentMultiple_Type ContentMultiple_DropdownType = ContentMultiple_dropdown

func (ContentMultiple_DropdownType) Enum

func (ContentMultiple_DropdownType) EnumDescriptor

func (ContentMultiple_DropdownType) EnumDescriptor() ([]byte, []int)

func (ContentMultiple_DropdownType) String

func (*ContentMultiple_DropdownType) UnmarshalJSON

func (x *ContentMultiple_DropdownType) UnmarshalJSON(data []byte) error

type ContentString

type ContentString struct {
	Title            *string          `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Type             *ContentTextType `protobuf:"varint,2,opt,name=type,enum=ketchup.models.ContentTextType" json:"type,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*ContentString) Descriptor

func (*ContentString) Descriptor() ([]byte, []int)

func (*ContentString) GetTitle

func (m *ContentString) GetTitle() string

func (*ContentString) GetType

func (m *ContentString) GetType() ContentTextType

func (*ContentString) ProtoMessage

func (*ContentString) ProtoMessage()

func (*ContentString) Reset

func (m *ContentString) Reset()

func (*ContentString) SetTitle

func (m *ContentString) SetTitle(v *string)

func (*ContentString) SetType

func (m *ContentString) SetType(v *ContentTextType)

func (*ContentString) String

func (m *ContentString) String() string

type ContentText

type ContentText struct {
	Title            *string          `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Type             *ContentTextType `protobuf:"varint,2,opt,name=type,enum=ketchup.models.ContentTextType" json:"type,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*ContentText) Descriptor

func (*ContentText) Descriptor() ([]byte, []int)

func (*ContentText) GetTitle

func (m *ContentText) GetTitle() string

func (*ContentText) GetType

func (m *ContentText) GetType() ContentTextType

func (*ContentText) ProtoMessage

func (*ContentText) ProtoMessage()

func (*ContentText) Reset

func (m *ContentText) Reset()

func (*ContentText) SetTitle

func (m *ContentText) SetTitle(v *string)

func (*ContentText) SetType

func (m *ContentText) SetType(v *ContentTextType)

func (*ContentText) String

func (m *ContentText) String() string

type ContentTextType

type ContentTextType int32
const (
	ContentTextType_text     ContentTextType = 0
	ContentTextType_markdown ContentTextType = 1
	ContentTextType_html     ContentTextType = 2
)

func (ContentTextType) Enum

func (x ContentTextType) Enum() *ContentTextType

func (ContentTextType) EnumDescriptor

func (ContentTextType) EnumDescriptor() ([]byte, []int)

func (ContentTextType) String

func (x ContentTextType) String() string

func (*ContentTextType) UnmarshalJSON

func (x *ContentTextType) UnmarshalJSON(data []byte) error

type Content_Multiple

type Content_Multiple struct {
	Multiple *ContentMultiple `protobuf:"bytes,13,opt,name=multiple,oneof"`
}

func (*Content_Multiple) IsContent_Type

func (*Content_Multiple) IsContent_Type()

type Content_Short

type Content_Short struct {
	Short *ContentString `protobuf:"bytes,11,opt,name=short,oneof"`
}

func (*Content_Short) IsContent_Type

func (*Content_Short) IsContent_Type()

type Content_Text

type Content_Text struct {
	Text *ContentText `protobuf:"bytes,12,opt,name=text,oneof"`
}

func (*Content_Text) IsContent_Type

func (*Content_Text) IsContent_Type()

type Data added in v0.2.0

type Data struct {
	Uuid       *string    `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Key        *string    `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Value      *string    `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	Timestamps *Timestamp `protobuf:"bytes,5,opt,name=timestamps" json:"timestamps,omitempty"`
	// Types that are valid to be assigned to Type:
	//	*Data_Short
	//	*Data_Text
	//	*Data_Multiple
	Type             IsData_Type `protobuf_oneof:"type"`
	XXX_unrecognized []byte      `json:"-"`
}

func (*Data) Descriptor added in v0.2.0

func (*Data) Descriptor() ([]byte, []int)

func (*Data) GetKey added in v0.2.0

func (m *Data) GetKey() string

func (*Data) GetMultiple added in v0.2.0

func (m *Data) GetMultiple() *ContentMultiple

func (*Data) GetShort added in v0.2.0

func (m *Data) GetShort() *ContentString

func (*Data) GetText added in v0.2.0

func (m *Data) GetText() *ContentText

func (*Data) GetTimestamps added in v0.2.0

func (m *Data) GetTimestamps() *Timestamp

func (*Data) GetType added in v0.2.0

func (m *Data) GetType() IsData_Type

func (*Data) GetUuid added in v0.2.0

func (m *Data) GetUuid() string

func (*Data) GetValue added in v0.2.0

func (m *Data) GetValue() string

func (*Data) ProtoMessage added in v0.2.0

func (*Data) ProtoMessage()

func (*Data) Reset added in v0.2.0

func (m *Data) Reset()

func (*Data) SetKey added in v0.2.0

func (m *Data) SetKey(v *string)

func (*Data) SetTimestamps added in v0.2.0

func (m *Data) SetTimestamps(v *Timestamp)

func (*Data) SetUuid added in v0.2.0

func (m *Data) SetUuid(v *string)

func (*Data) SetValue added in v0.2.0

func (m *Data) SetValue(v *string)

func (*Data) String added in v0.2.0

func (m *Data) String() string

func (*Data) XXX_OneofFuncs added in v0.2.0

func (*Data) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Data_Multiple added in v0.2.0

type Data_Multiple struct {
	Multiple *ContentMultiple `protobuf:"bytes,13,opt,name=multiple,oneof"`
}

func (*Data_Multiple) IsData_Type added in v0.2.0

func (*Data_Multiple) IsData_Type()

type Data_Short added in v0.2.0

type Data_Short struct {
	Short *ContentString `protobuf:"bytes,11,opt,name=short,oneof"`
}

func (*Data_Short) IsData_Type added in v0.2.0

func (*Data_Short) IsData_Type()

type Data_Text added in v0.2.0

type Data_Text struct {
	Text *ContentText `protobuf:"bytes,12,opt,name=text,oneof"`
}

func (*Data_Text) IsData_Type added in v0.2.0

func (*Data_Text) IsData_Type()

type File added in v0.3.0

type File struct {
	Uuid             *string    `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Name             *string    `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Url              *string    `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
	Timestamps       *Timestamp `protobuf:"bytes,5,opt,name=timestamps" json:"timestamps,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*File) Descriptor added in v0.3.0

func (*File) Descriptor() ([]byte, []int)

func (*File) GetName added in v0.3.0

func (m *File) GetName() string

func (*File) GetTimestamps added in v0.3.0

func (m *File) GetTimestamps() *Timestamp

func (*File) GetUrl added in v0.3.0

func (m *File) GetUrl() string

func (*File) GetUuid added in v0.3.0

func (m *File) GetUuid() string

func (*File) ProtoMessage added in v0.3.0

func (*File) ProtoMessage()

func (*File) Reset added in v0.3.0

func (m *File) Reset()

func (*File) SetName added in v0.3.0

func (m *File) SetName(v *string)

func (*File) SetTimestamps added in v0.3.0

func (m *File) SetTimestamps(v *Timestamp)

func (*File) SetUrl added in v0.3.0

func (m *File) SetUrl(v *string)

func (*File) SetUuid added in v0.3.0

func (m *File) SetUuid(v *string)

func (*File) String added in v0.3.0

func (m *File) String() string

type IsContent_Type

type IsContent_Type interface {
	IsContent_Type()
}

type IsData_Type added in v0.2.0

type IsData_Type interface {
	IsData_Type()
}

type IsRoute_Target

type IsRoute_Target interface {
	IsRoute_Target()
}

type IsThemePlaceholder_Type

type IsThemePlaceholder_Type interface {
	IsThemePlaceholder_Type()
}

type Metadata

type Metadata struct {
	Uuid             *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Metadata) Descriptor

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetUuid

func (m *Metadata) GetUuid() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) SetUuid

func (m *Metadata) SetUuid(v *string)

func (*Metadata) String

func (m *Metadata) String() string

type Page

type Page struct {
	Uuid             *string           `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Title            *string           `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
	Theme            *string           `protobuf:"bytes,3,opt,name=theme" json:"theme,omitempty"`
	Template         *string           `protobuf:"bytes,4,opt,name=template" json:"template,omitempty"`
	Timestamps       *Timestamp        `protobuf:"bytes,5,opt,name=timestamps" json:"timestamps,omitempty"`
	PublishedAt      *int64            `protobuf:"varint,6,opt,name=published_at,json=publishedAt" json:"published_at,omitempty"`
	Contents         []*Content        `protobuf:"bytes,10,rep,name=contents" json:"contents,omitempty"`
	Metadata         map[string]string `` /* 137-byte string literal not displayed */
	Tags             []string          `protobuf:"bytes,12,rep,name=tags" json:"tags,omitempty"`
	Authors          []*Author         `protobuf:"bytes,13,rep,name=authors" json:"authors,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*Page) Descriptor

func (*Page) Descriptor() ([]byte, []int)

func (*Page) GetAuthors

func (m *Page) GetAuthors() []*Author

func (*Page) GetContents

func (m *Page) GetContents() []*Content

func (*Page) GetMetadata

func (m *Page) GetMetadata() map[string]string

func (*Page) GetPublishedAt

func (m *Page) GetPublishedAt() int64

func (*Page) GetTags

func (m *Page) GetTags() []string

func (*Page) GetTemplate

func (m *Page) GetTemplate() string

func (*Page) GetTheme

func (m *Page) GetTheme() string

func (*Page) GetTimestamps

func (m *Page) GetTimestamps() *Timestamp

func (*Page) GetTitle

func (m *Page) GetTitle() string

func (*Page) GetUuid

func (m *Page) GetUuid() string

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) Reset

func (m *Page) Reset()

func (*Page) SetAuthors

func (m *Page) SetAuthors(v []*Author)

func (*Page) SetContents

func (m *Page) SetContents(v []*Content)

func (*Page) SetMetadata

func (m *Page) SetMetadata(v map[string]string)

func (*Page) SetPublishedAt

func (m *Page) SetPublishedAt(v *int64)

func (*Page) SetTags

func (m *Page) SetTags(v []string)

func (*Page) SetTemplate

func (m *Page) SetTemplate(v *string)

func (*Page) SetTheme

func (m *Page) SetTheme(v *string)

func (*Page) SetTimestamps

func (m *Page) SetTimestamps(v *Timestamp)

func (*Page) SetTitle

func (m *Page) SetTitle(v *string)

func (*Page) SetUuid

func (m *Page) SetUuid(v *string)

func (*Page) String

func (m *Page) String() string

type Route

type Route struct {
	Uuid *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
	// Types that are valid to be assigned to Target:
	//	*Route_File
	//	*Route_PageUuid
	Target           IsRoute_Target `protobuf_oneof:"target"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*Route) Descriptor

func (*Route) Descriptor() ([]byte, []int)

func (*Route) GetFile

func (m *Route) GetFile() string

func (*Route) GetPageUuid

func (m *Route) GetPageUuid() string

func (*Route) GetPath

func (m *Route) GetPath() string

func (*Route) GetTarget

func (m *Route) GetTarget() IsRoute_Target

func (*Route) GetUuid

func (m *Route) GetUuid() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) SetPath

func (m *Route) SetPath(v *string)

func (*Route) SetUuid

func (m *Route) SetUuid(v *string)

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_OneofFuncs

func (*Route) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Route_File

type Route_File struct {
	File string `protobuf:"bytes,10,opt,name=file,oneof"`
}

func (*Route_File) IsRoute_Target

func (*Route_File) IsRoute_Target()

type Route_PageUuid

type Route_PageUuid struct {
	PageUuid string `protobuf:"bytes,11,opt,name=page_uuid,json=pageUuid,oneof"`
}

func (*Route_PageUuid) IsRoute_Target

func (*Route_PageUuid) IsRoute_Target()

type Theme

type Theme struct {
	Uuid             *string                   `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Name             *string                   `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Description      *string                   `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	Package          *ketchup_packages.Package `protobuf:"bytes,4,opt,name=package" json:"package,omitempty"`
	Templates        map[string]*ThemeTemplate `` /* 139-byte string literal not displayed */
	Assets           map[string]*ThemeAsset    `` /* 133-byte string literal not displayed */
	Placeholders     []*Data                   `protobuf:"bytes,12,rep,name=placeholders" json:"placeholders,omitempty"`
	XXX_unrecognized []byte                    `json:"-"`
}

A Theme can be entirely contained within a theme proto, however more usually `data` will be omitted for ThemeTemplate and ThemeAsset.

func (*Theme) Descriptor

func (*Theme) Descriptor() ([]byte, []int)

func (*Theme) GetAssets

func (m *Theme) GetAssets() map[string]*ThemeAsset

func (*Theme) GetDescription added in v0.2.0

func (m *Theme) GetDescription() string

func (*Theme) GetName

func (m *Theme) GetName() string

func (*Theme) GetPackage added in v0.2.0

func (m *Theme) GetPackage() *ketchup_packages.Package

func (*Theme) GetPlaceholders added in v0.2.0

func (m *Theme) GetPlaceholders() []*Data

func (*Theme) GetTemplates

func (m *Theme) GetTemplates() map[string]*ThemeTemplate

func (*Theme) GetUuid

func (m *Theme) GetUuid() string

func (*Theme) ProtoMessage

func (*Theme) ProtoMessage()

func (*Theme) Reset

func (m *Theme) Reset()

func (*Theme) SetAssets

func (m *Theme) SetAssets(v map[string]*ThemeAsset)

func (*Theme) SetDescription added in v0.2.0

func (m *Theme) SetDescription(v *string)

func (*Theme) SetName

func (m *Theme) SetName(v *string)

func (*Theme) SetPackage added in v0.2.0

func (m *Theme) SetPackage(v *ketchup_packages.Package)

func (*Theme) SetPlaceholders added in v0.2.0

func (m *Theme) SetPlaceholders(v []*Data)

func (*Theme) SetTemplates

func (m *Theme) SetTemplates(v map[string]*ThemeTemplate)

func (*Theme) SetUuid

func (m *Theme) SetUuid(v *string)

func (*Theme) String

func (m *Theme) String() string

type ThemeAsset

type ThemeAsset struct {
	Uuid             *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Name             *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Theme            *string `protobuf:"bytes,3,opt,name=theme" json:"theme,omitempty"`
	Data             *string `protobuf:"bytes,10,opt,name=data" json:"data,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ThemeAsset) Descriptor

func (*ThemeAsset) Descriptor() ([]byte, []int)

func (*ThemeAsset) GetData

func (m *ThemeAsset) GetData() string

func (*ThemeAsset) GetName

func (m *ThemeAsset) GetName() string

func (*ThemeAsset) GetTheme

func (m *ThemeAsset) GetTheme() string

func (*ThemeAsset) GetUuid

func (m *ThemeAsset) GetUuid() string

func (*ThemeAsset) ProtoMessage

func (*ThemeAsset) ProtoMessage()

func (*ThemeAsset) Reset

func (m *ThemeAsset) Reset()

func (*ThemeAsset) SetData

func (m *ThemeAsset) SetData(v *string)

func (*ThemeAsset) SetName

func (m *ThemeAsset) SetName(v *string)

func (*ThemeAsset) SetTheme

func (m *ThemeAsset) SetTheme(v *string)

func (*ThemeAsset) SetUuid

func (m *ThemeAsset) SetUuid(v *string)

func (*ThemeAsset) String

func (m *ThemeAsset) String() string

type ThemePlaceholder

type ThemePlaceholder struct {
	Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	// Types that are valid to be assigned to Type:
	//	*ThemePlaceholder_Short
	//	*ThemePlaceholder_Text
	//	*ThemePlaceholder_Multiple
	Type             IsThemePlaceholder_Type `protobuf_oneof:"type"`
	XXX_unrecognized []byte                  `json:"-"`
}

func (*ThemePlaceholder) Descriptor

func (*ThemePlaceholder) Descriptor() ([]byte, []int)

func (*ThemePlaceholder) GetKey

func (m *ThemePlaceholder) GetKey() string

func (*ThemePlaceholder) GetMultiple

func (m *ThemePlaceholder) GetMultiple() *ContentMultiple

func (*ThemePlaceholder) GetShort

func (m *ThemePlaceholder) GetShort() *ContentString

func (*ThemePlaceholder) GetText

func (m *ThemePlaceholder) GetText() *ContentText

func (*ThemePlaceholder) GetType

func (*ThemePlaceholder) ProtoMessage

func (*ThemePlaceholder) ProtoMessage()

func (*ThemePlaceholder) Reset

func (m *ThemePlaceholder) Reset()

func (*ThemePlaceholder) SetKey

func (m *ThemePlaceholder) SetKey(v *string)

func (*ThemePlaceholder) String

func (m *ThemePlaceholder) String() string

func (*ThemePlaceholder) XXX_OneofFuncs

func (*ThemePlaceholder) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ThemePlaceholder_Multiple

type ThemePlaceholder_Multiple struct {
	Multiple *ContentMultiple `protobuf:"bytes,13,opt,name=multiple,oneof"`
}

func (*ThemePlaceholder_Multiple) IsThemePlaceholder_Type

func (*ThemePlaceholder_Multiple) IsThemePlaceholder_Type()

type ThemePlaceholder_Short

type ThemePlaceholder_Short struct {
	Short *ContentString `protobuf:"bytes,11,opt,name=short,oneof"`
}

func (*ThemePlaceholder_Short) IsThemePlaceholder_Type

func (*ThemePlaceholder_Short) IsThemePlaceholder_Type()

type ThemePlaceholder_Text

type ThemePlaceholder_Text struct {
	Text *ContentText `protobuf:"bytes,12,opt,name=text,oneof"`
}

func (*ThemePlaceholder_Text) IsThemePlaceholder_Type

func (*ThemePlaceholder_Text) IsThemePlaceholder_Type()

type ThemeTemplate

type ThemeTemplate struct {
	Uuid         *string             `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Name         *string             `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Theme        *string             `protobuf:"bytes,3,opt,name=theme" json:"theme,omitempty"`
	Engine       *string             `protobuf:"bytes,4,opt,name=engine,def=html" json:"engine,omitempty"`
	HideContent  *bool               `protobuf:"varint,5,opt,name=hideContent,def=0" json:"hideContent,omitempty"`
	Description  *string             `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"`
	Placeholders []*ThemePlaceholder `protobuf:"bytes,10,rep,name=placeholders" json:"placeholders,omitempty"`
	// maybe an option for extensions?
	Data             *string `protobuf:"bytes,11,opt,name=data" json:"data,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*ThemeTemplate) Descriptor

func (*ThemeTemplate) Descriptor() ([]byte, []int)

func (*ThemeTemplate) GetData

func (m *ThemeTemplate) GetData() string

func (*ThemeTemplate) GetDescription

func (m *ThemeTemplate) GetDescription() string

func (*ThemeTemplate) GetEngine

func (m *ThemeTemplate) GetEngine() string

func (*ThemeTemplate) GetHideContent

func (m *ThemeTemplate) GetHideContent() bool

func (*ThemeTemplate) GetName

func (m *ThemeTemplate) GetName() string

func (*ThemeTemplate) GetPlaceholders

func (m *ThemeTemplate) GetPlaceholders() []*ThemePlaceholder

func (*ThemeTemplate) GetTheme

func (m *ThemeTemplate) GetTheme() string

func (*ThemeTemplate) GetUuid

func (m *ThemeTemplate) GetUuid() string

func (*ThemeTemplate) ProtoMessage

func (*ThemeTemplate) ProtoMessage()

func (*ThemeTemplate) Reset

func (m *ThemeTemplate) Reset()

func (*ThemeTemplate) SetData

func (m *ThemeTemplate) SetData(v *string)

func (*ThemeTemplate) SetDescription

func (m *ThemeTemplate) SetDescription(v *string)

func (*ThemeTemplate) SetEngine

func (m *ThemeTemplate) SetEngine(v *string)

func (*ThemeTemplate) SetHideContent

func (m *ThemeTemplate) SetHideContent(v *bool)

func (*ThemeTemplate) SetName

func (m *ThemeTemplate) SetName(v *string)

func (*ThemeTemplate) SetPlaceholders

func (m *ThemeTemplate) SetPlaceholders(v []*ThemePlaceholder)

func (*ThemeTemplate) SetTheme

func (m *ThemeTemplate) SetTheme(v *string)

func (*ThemeTemplate) SetUuid

func (m *ThemeTemplate) SetUuid(v *string)

func (*ThemeTemplate) String

func (m *ThemeTemplate) String() string

type Timestamp

type Timestamp struct {
	CreatedAt        *int64 `protobuf:"varint,1,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	UpdatedAt        *int64 `protobuf:"varint,2,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Timestamp) Descriptor

func (*Timestamp) Descriptor() ([]byte, []int)

func (*Timestamp) GetCreatedAt

func (m *Timestamp) GetCreatedAt() int64

func (*Timestamp) GetUpdatedAt

func (m *Timestamp) GetUpdatedAt() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) SetCreatedAt

func (m *Timestamp) SetCreatedAt(v *int64)

func (*Timestamp) SetUpdatedAt

func (m *Timestamp) SetUpdatedAt(v *int64)

func (*Timestamp) String

func (m *Timestamp) String() string

type User

type User struct {
	Uuid             *string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
	Email            *string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
	HashedPassword   *string `protobuf:"bytes,3,opt,name=hashed_password,json=hashedPassword" json:"hashed_password,omitempty"`
	Token            *string `protobuf:"bytes,4,opt,name=token" json:"token,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetHashedPassword

func (m *User) GetHashedPassword() string

func (*User) GetToken

func (m *User) GetToken() string

func (*User) GetUuid

func (m *User) GetUuid() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) SetEmail

func (m *User) SetEmail(v *string)

func (*User) SetHashedPassword

func (m *User) SetHashedPassword(v *string)

func (*User) SetToken

func (m *User) SetToken(v *string)

func (*User) SetUuid

func (m *User) SetUuid(v *string)

func (*User) String

func (m *User) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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