Documentation ¶
Index ¶
- Constants
- Variables
- type Author
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetKey() string
- func (m *Content) GetMultiple() *ContentMultiple
- func (m *Content) GetShort() *ContentString
- func (m *Content) GetText() *ContentText
- func (m *Content) GetTimestamps() *Timestamp
- func (m *Content) GetType() IsContent_Type
- func (m *Content) GetUuid() string
- func (m *Content) GetValue() string
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) SetKey(v *string)
- func (m *Content) SetTimestamps(v *Timestamp)
- func (m *Content) SetUuid(v *string)
- func (m *Content) SetValue(v *string)
- func (m *Content) String() string
- func (*Content) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ContentMultiple
- func (*ContentMultiple) Descriptor() ([]byte, []int)
- func (m *ContentMultiple) GetOptions() []string
- func (m *ContentMultiple) GetTitle() string
- func (m *ContentMultiple) GetType() ContentMultiple_DropdownType
- func (*ContentMultiple) ProtoMessage()
- func (m *ContentMultiple) Reset()
- func (m *ContentMultiple) SetOptions(v []string)
- func (m *ContentMultiple) SetTitle(v *string)
- func (m *ContentMultiple) SetType(v *ContentMultiple_DropdownType)
- func (m *ContentMultiple) String() string
- type ContentMultiple_DropdownType
- type ContentString
- func (*ContentString) Descriptor() ([]byte, []int)
- func (m *ContentString) GetTitle() string
- func (m *ContentString) GetType() ContentTextType
- func (*ContentString) ProtoMessage()
- func (m *ContentString) Reset()
- func (m *ContentString) SetTitle(v *string)
- func (m *ContentString) SetType(v *ContentTextType)
- func (m *ContentString) String() string
- type ContentText
- func (*ContentText) Descriptor() ([]byte, []int)
- func (m *ContentText) GetTitle() string
- func (m *ContentText) GetType() ContentTextType
- func (*ContentText) ProtoMessage()
- func (m *ContentText) Reset()
- func (m *ContentText) SetTitle(v *string)
- func (m *ContentText) SetType(v *ContentTextType)
- func (m *ContentText) String() string
- type ContentTextType
- type Content_Multiple
- type Content_Short
- type Content_Text
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetKey() string
- func (m *Data) GetMultiple() *ContentMultiple
- func (m *Data) GetShort() *ContentString
- func (m *Data) GetText() *ContentText
- func (m *Data) GetTimestamps() *Timestamp
- func (m *Data) GetType() IsData_Type
- func (m *Data) GetUuid() string
- func (m *Data) GetValue() string
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) SetKey(v *string)
- func (m *Data) SetTimestamps(v *Timestamp)
- func (m *Data) SetUuid(v *string)
- func (m *Data) SetValue(v *string)
- func (m *Data) String() string
- func (*Data) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Data_Multiple
- type Data_Short
- type Data_Text
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetName() string
- func (m *File) GetTimestamps() *Timestamp
- func (m *File) GetUrl() string
- func (m *File) GetUuid() string
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) SetName(v *string)
- func (m *File) SetTimestamps(v *Timestamp)
- func (m *File) SetUrl(v *string)
- func (m *File) SetUuid(v *string)
- func (m *File) String() string
- type IsContent_Type
- type IsData_Type
- type IsRoute_Target
- type IsThemePlaceholder_Type
- type Metadata
- type Page
- func (*Page) Descriptor() ([]byte, []int)
- func (m *Page) GetAuthors() []*Author
- func (m *Page) GetContents() []*Content
- func (m *Page) GetMetadata() map[string]string
- func (m *Page) GetPublishedAt() int64
- func (m *Page) GetTags() []string
- func (m *Page) GetTemplate() string
- func (m *Page) GetTheme() string
- func (m *Page) GetTimestamps() *Timestamp
- func (m *Page) GetTitle() string
- func (m *Page) GetUuid() string
- func (*Page) ProtoMessage()
- func (m *Page) Reset()
- func (m *Page) SetAuthors(v []*Author)
- func (m *Page) SetContents(v []*Content)
- func (m *Page) SetMetadata(v map[string]string)
- func (m *Page) SetPublishedAt(v *int64)
- func (m *Page) SetTags(v []string)
- func (m *Page) SetTemplate(v *string)
- func (m *Page) SetTheme(v *string)
- func (m *Page) SetTimestamps(v *Timestamp)
- func (m *Page) SetTitle(v *string)
- func (m *Page) SetUuid(v *string)
- func (m *Page) String() string
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetFile() string
- func (m *Route) GetPageUuid() string
- func (m *Route) GetPath() string
- func (m *Route) GetTarget() IsRoute_Target
- func (m *Route) GetUuid() string
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) SetPath(v *string)
- func (m *Route) SetUuid(v *string)
- func (m *Route) String() string
- func (*Route) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Route_File
- type Route_PageUuid
- type Theme
- func (*Theme) Descriptor() ([]byte, []int)
- func (m *Theme) GetAssets() map[string]*ThemeAsset
- func (m *Theme) GetDescription() string
- func (m *Theme) GetName() string
- func (m *Theme) GetPackage() *ketchup_packages.Package
- func (m *Theme) GetPlaceholders() []*Data
- func (m *Theme) GetTemplates() map[string]*ThemeTemplate
- func (m *Theme) GetUuid() string
- func (*Theme) ProtoMessage()
- func (m *Theme) Reset()
- func (m *Theme) SetAssets(v map[string]*ThemeAsset)
- func (m *Theme) SetDescription(v *string)
- func (m *Theme) SetName(v *string)
- func (m *Theme) SetPackage(v *ketchup_packages.Package)
- func (m *Theme) SetPlaceholders(v []*Data)
- func (m *Theme) SetTemplates(v map[string]*ThemeTemplate)
- func (m *Theme) SetUuid(v *string)
- func (m *Theme) String() string
- type ThemeAsset
- func (*ThemeAsset) Descriptor() ([]byte, []int)
- func (m *ThemeAsset) GetData() string
- func (m *ThemeAsset) GetName() string
- func (m *ThemeAsset) GetTheme() string
- func (m *ThemeAsset) GetUuid() string
- func (*ThemeAsset) ProtoMessage()
- func (m *ThemeAsset) Reset()
- func (m *ThemeAsset) SetData(v *string)
- func (m *ThemeAsset) SetName(v *string)
- func (m *ThemeAsset) SetTheme(v *string)
- func (m *ThemeAsset) SetUuid(v *string)
- func (m *ThemeAsset) String() string
- type ThemePlaceholder
- func (*ThemePlaceholder) Descriptor() ([]byte, []int)
- func (m *ThemePlaceholder) GetKey() string
- func (m *ThemePlaceholder) GetMultiple() *ContentMultiple
- func (m *ThemePlaceholder) GetShort() *ContentString
- func (m *ThemePlaceholder) GetText() *ContentText
- func (m *ThemePlaceholder) GetType() IsThemePlaceholder_Type
- func (*ThemePlaceholder) ProtoMessage()
- func (m *ThemePlaceholder) Reset()
- func (m *ThemePlaceholder) SetKey(v *string)
- func (m *ThemePlaceholder) String() string
- func (*ThemePlaceholder) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ThemePlaceholder_Multiple
- type ThemePlaceholder_Short
- type ThemePlaceholder_Text
- type ThemeTemplate
- func (*ThemeTemplate) Descriptor() ([]byte, []int)
- func (m *ThemeTemplate) GetData() string
- func (m *ThemeTemplate) GetDescription() string
- func (m *ThemeTemplate) GetEngine() string
- func (m *ThemeTemplate) GetHideContent() bool
- func (m *ThemeTemplate) GetName() string
- func (m *ThemeTemplate) GetPlaceholders() []*ThemePlaceholder
- func (m *ThemeTemplate) GetTheme() string
- func (m *ThemeTemplate) GetUuid() string
- func (*ThemeTemplate) ProtoMessage()
- func (m *ThemeTemplate) Reset()
- func (m *ThemeTemplate) SetData(v *string)
- func (m *ThemeTemplate) SetDescription(v *string)
- func (m *ThemeTemplate) SetEngine(v *string)
- func (m *ThemeTemplate) SetHideContent(v *bool)
- func (m *ThemeTemplate) SetName(v *string)
- func (m *ThemeTemplate) SetPlaceholders(v []*ThemePlaceholder)
- func (m *ThemeTemplate) SetTheme(v *string)
- func (m *ThemeTemplate) SetUuid(v *string)
- func (m *ThemeTemplate) String() string
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) GetCreatedAt() int64
- func (m *Timestamp) GetUpdatedAt() int64
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) SetCreatedAt(v *int64)
- func (m *Timestamp) SetUpdatedAt(v *int64)
- func (m *Timestamp) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetEmail() string
- func (m *User) GetHashedPassword() string
- func (m *User) GetToken() string
- func (m *User) GetUuid() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) SetEmail(v *string)
- func (m *User) SetHashedPassword(v *string)
- func (m *User) SetToken(v *string)
- func (m *User) SetUuid(v *string)
- func (m *User) String() string
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) ProtoMessage ¶
func (*Author) ProtoMessage()
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) 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 (*Content) GetType ¶
func (m *Content) GetType() IsContent_Type
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) SetTimestamps ¶
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 (m *ContentMultiple) GetType() ContentMultiple_DropdownType
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 (m *ContentMultiple) SetType(v *ContentMultiple_DropdownType)
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 (x ContentMultiple_DropdownType) Enum() *ContentMultiple_DropdownType
func (ContentMultiple_DropdownType) EnumDescriptor ¶
func (ContentMultiple_DropdownType) EnumDescriptor() ([]byte, []int)
func (ContentMultiple_DropdownType) String ¶
func (x ContentMultiple_DropdownType) String() 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) 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 (*Data) GetType ¶ added in v0.2.0
func (m *Data) GetType() IsData_Type
func (*Data) ProtoMessage ¶ added in v0.2.0
func (*Data) ProtoMessage()
func (*Data) SetTimestamps ¶ added in v0.2.0
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) GetTimestamps ¶ added in v0.3.0
func (*File) ProtoMessage ¶ added in v0.3.0
func (*File) ProtoMessage()
func (*File) SetTimestamps ¶ added in v0.3.0
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) ProtoMessage ¶
func (*Metadata) ProtoMessage()
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) GetAuthors ¶
func (*Page) GetContents ¶
func (*Page) GetMetadata ¶
func (*Page) GetPublishedAt ¶
func (*Page) GetTemplate ¶
func (*Page) GetTimestamps ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) SetAuthors ¶
func (*Page) SetContents ¶
func (*Page) SetMetadata ¶
func (*Page) SetPublishedAt ¶
func (*Page) SetTemplate ¶
func (*Page) SetTimestamps ¶
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) GetPageUuid ¶
func (*Route) GetTarget ¶
func (m *Route) GetTarget() IsRoute_Target
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
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) GetAssets ¶
func (m *Theme) GetAssets() map[string]*ThemeAsset
func (*Theme) GetDescription ¶ added in v0.2.0
func (*Theme) GetPackage ¶ added in v0.2.0
func (m *Theme) GetPackage() *ketchup_packages.Package
func (*Theme) GetPlaceholders ¶ added in v0.2.0
func (*Theme) GetTemplates ¶
func (m *Theme) GetTemplates() map[string]*ThemeTemplate
func (*Theme) ProtoMessage ¶
func (*Theme) ProtoMessage()
func (*Theme) SetAssets ¶
func (m *Theme) SetAssets(v map[string]*ThemeAsset)
func (*Theme) SetDescription ¶ added in v0.2.0
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 (*Theme) SetTemplates ¶
func (m *Theme) SetTemplates(v map[string]*ThemeTemplate)
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 (m *ThemePlaceholder) GetType() IsThemePlaceholder_Type
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) GetCreatedAt ¶
func (*Timestamp) GetUpdatedAt ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) SetCreatedAt ¶
func (*Timestamp) SetUpdatedAt ¶
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) GetHashedPassword ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) SetHashedPassword ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.