Documentation
¶
Index ¶
- Variables
- type AssociationTypes
- type Card
- func (*Card) Descriptor() ([]byte, []int)
- func (m *Card) GetExampleSentences() []string
- func (m *Card) GetExplanations() []string
- func (m *Card) GetFamiliarity() int32
- func (m *Card) GetIndex() *CardIndex
- func (m *Card) GetLabels() []string
- func (m *Card) GetReviewDate() *timestamp.Timestamp
- func (c Card) MarshalJSON() ([]byte, error)
- func (*Card) ProtoMessage()
- func (m *Card) Reset()
- func (m *Card) String() string
- func (c *Card) UnmarshalJSON(data []byte) error
- func (m *Card) XXX_DiscardUnknown()
- func (m *Card) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Card) XXX_Merge(src proto.Message)
- func (m *Card) XXX_Size() int
- func (m *Card) XXX_Unmarshal(b []byte) error
- type CardIndex
- func (*CardIndex) Descriptor() ([]byte, []int)
- func (m *CardIndex) GetLanguage() Language
- func (m *CardIndex) GetName() string
- func (c CardIndex) MarshalJSON() ([]byte, error)
- func (*CardIndex) ProtoMessage()
- func (m *CardIndex) Reset()
- func (m *CardIndex) String() string
- func (c *CardIndex) UnmarshalJSON(data []byte) error
- func (m *CardIndex) XXX_DiscardUnknown()
- func (m *CardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CardIndex) XXX_Merge(src proto.Message)
- func (m *CardIndex) XXX_Size() int
- func (m *CardIndex) XXX_Unmarshal(b []byte) error
- type Language
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (m *Log) GetDate() string
- func (m *Log) GetNewCards() int32
- func (m *Log) GetReviewCards() int32
- func (m *Log) GetStreak() int32
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) String() string
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
- type RelatedCards
- func (*RelatedCards) Descriptor() ([]byte, []int)
- func (m *RelatedCards) GetAntonyms() []*CardIndex
- func (m *RelatedCards) GetDerivatives() []*CardIndex
- func (m *RelatedCards) GetInOtherLanguages() []*CardIndex
- func (m *RelatedCards) GetIndex() *CardIndex
- func (m *RelatedCards) GetOrigin() *CardIndex
- func (m *RelatedCards) GetOthers() []*CardIndex
- func (m *RelatedCards) GetSynonyms() []*CardIndex
- func (*RelatedCards) ProtoMessage()
- func (m *RelatedCards) Reset()
- func (m *RelatedCards) String() string
- func (m *RelatedCards) XXX_DiscardUnknown()
- func (m *RelatedCards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RelatedCards) XXX_Merge(src proto.Message)
- func (m *RelatedCards) XXX_Size() int
- func (m *RelatedCards) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AssociationTypes_name = map[int32]string{
0: "SYNONYMS",
1: "ANTONYMS",
2: "ORIGIN",
3: "DERIVATIVES",
4: "IN_OTHER_LANGUAGES",
5: "OTHERS",
}
View Source
var AssociationTypes_value = map[string]int32{
"SYNONYMS": 0,
"ANTONYMS": 1,
"ORIGIN": 2,
"DERIVATIVES": 3,
"IN_OTHER_LANGUAGES": 4,
"OTHERS": 5,
}
View Source
var Language_name = map[int32]string{
0: "ENGLISH",
1: "JAPANESE",
2: "FRENCH",
}
View Source
var Language_value = map[string]int32{
"ENGLISH": 0,
"JAPANESE": 1,
"FRENCH": 2,
}
Functions ¶
This section is empty.
Types ¶
type AssociationTypes ¶
type AssociationTypes int32
const ( AssociationTypes_SYNONYMS AssociationTypes = 0 AssociationTypes_ANTONYMS AssociationTypes = 1 AssociationTypes_ORIGIN AssociationTypes = 2 AssociationTypes_DERIVATIVES AssociationTypes = 3 AssociationTypes_IN_OTHER_LANGUAGES AssociationTypes = 4 AssociationTypes_OTHERS AssociationTypes = 5 )
func (AssociationTypes) EnumDescriptor ¶
func (AssociationTypes) EnumDescriptor() ([]byte, []int)
func (AssociationTypes) String ¶
func (x AssociationTypes) String() string
type Card ¶
type Card struct {
Index *CardIndex `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
Explanations []string `protobuf:"bytes,3,rep,name=explanations,proto3" json:"explanations,omitempty"`
ExampleSentences []string `protobuf:"bytes,4,rep,name=example_sentences,json=exampleSentences,proto3" json:"example_sentences,omitempty"`
// where 0 means not familiar at all, 10 means very familiar
Familiarity int32 `protobuf:"varint,5,opt,name=familiarity,proto3" json:"familiarity,omitempty"`
ReviewDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=review_date,json=reviewDate,proto3" json:"review_date,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Card) Descriptor ¶
func (*Card) GetExampleSentences ¶
func (*Card) GetExplanations ¶
func (*Card) GetFamiliarity ¶
func (*Card) GetReviewDate ¶
func (Card) MarshalJSON ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) UnmarshalJSON ¶
func (*Card) XXX_DiscardUnknown ¶
func (m *Card) XXX_DiscardUnknown()
func (*Card) XXX_Unmarshal ¶
type CardIndex ¶
type CardIndex struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Language Language `protobuf:"varint,2,opt,name=language,proto3,enum=protomodels.Language" json:"language,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CardIndex) Descriptor ¶
func (*CardIndex) GetLanguage ¶
func (CardIndex) MarshalJSON ¶
func (*CardIndex) ProtoMessage ¶
func (*CardIndex) ProtoMessage()
func (*CardIndex) UnmarshalJSON ¶
func (*CardIndex) XXX_DiscardUnknown ¶
func (m *CardIndex) XXX_DiscardUnknown()
func (*CardIndex) XXX_Marshal ¶
func (*CardIndex) XXX_Unmarshal ¶
type Language ¶
type Language int32
func LangMapping ¶
func (Language) EnumDescriptor ¶
func (Language) MarshalJSON ¶
func (*Language) UnmarshalJSON ¶
type Log ¶
type Log struct {
Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
ReviewCards int32 `protobuf:"varint,2,opt,name=review_cards,json=reviewCards,proto3" json:"review_cards,omitempty"`
NewCards int32 `protobuf:"varint,3,opt,name=new_cards,json=newCards,proto3" json:"new_cards,omitempty"`
Streak int32 `protobuf:"varint,4,opt,name=streak,proto3" json:"streak,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Log) Descriptor ¶
func (*Log) GetNewCards ¶
func (*Log) GetReviewCards ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) XXX_DiscardUnknown ¶
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Unmarshal ¶
type RelatedCards ¶
type RelatedCards struct {
Index *CardIndex `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
Synonyms []*CardIndex `protobuf:"bytes,2,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
Antonyms []*CardIndex `protobuf:"bytes,3,rep,name=antonyms,proto3" json:"antonyms,omitempty"`
Origin *CardIndex `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
Derivatives []*CardIndex `protobuf:"bytes,5,rep,name=derivatives,proto3" json:"derivatives,omitempty"`
InOtherLanguages []*CardIndex `protobuf:"bytes,6,rep,name=in_other_languages,json=inOtherLanguages,proto3" json:"in_other_languages,omitempty"`
Others []*CardIndex `protobuf:"bytes,7,rep,name=others,proto3" json:"others,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RelatedCards) Descriptor ¶
func (*RelatedCards) Descriptor() ([]byte, []int)
func (*RelatedCards) GetAntonyms ¶
func (m *RelatedCards) GetAntonyms() []*CardIndex
func (*RelatedCards) GetDerivatives ¶
func (m *RelatedCards) GetDerivatives() []*CardIndex
func (*RelatedCards) GetInOtherLanguages ¶
func (m *RelatedCards) GetInOtherLanguages() []*CardIndex
func (*RelatedCards) GetIndex ¶
func (m *RelatedCards) GetIndex() *CardIndex
func (*RelatedCards) GetOrigin ¶
func (m *RelatedCards) GetOrigin() *CardIndex
func (*RelatedCards) GetOthers ¶
func (m *RelatedCards) GetOthers() []*CardIndex
func (*RelatedCards) GetSynonyms ¶
func (m *RelatedCards) GetSynonyms() []*CardIndex
func (*RelatedCards) ProtoMessage ¶
func (*RelatedCards) ProtoMessage()
func (*RelatedCards) Reset ¶
func (m *RelatedCards) Reset()
func (*RelatedCards) String ¶
func (m *RelatedCards) String() string
func (*RelatedCards) XXX_DiscardUnknown ¶
func (m *RelatedCards) XXX_DiscardUnknown()
func (*RelatedCards) XXX_Marshal ¶
func (m *RelatedCards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RelatedCards) XXX_Merge ¶
func (m *RelatedCards) XXX_Merge(src proto.Message)
func (*RelatedCards) XXX_Size ¶
func (m *RelatedCards) XXX_Size() int
func (*RelatedCards) XXX_Unmarshal ¶
func (m *RelatedCards) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.