Documentation ¶
Index ¶
- func Update(ctx context.Context, tx *dgo.Txn, v interface{}) error
- type CreateUserInput
- type Paper
- func (*Paper) Descriptor() ([]byte, []int)
- func (p *Paper) FirstOrCreate(dg *dgo.Dgraph) error
- func (m *Paper) GetAuthor() []*Researcher
- func (m *Paper) GetDate() string
- func (m *Paper) GetGenre() string
- func (m *Paper) GetIssueNumber() string
- func (m *Paper) GetJournal() string
- func (m *Paper) GetJournalName() string
- func (m *Paper) GetPagination() string
- func (m *Paper) GetTitle() string
- func (m *Paper) GetUid() string
- func (m *Paper) GetVolumeNumber() string
- func (*Paper) ProtoMessage()
- func (m *Paper) Reset()
- func (m *Paper) String() string
- func (m *Paper) XXX_DiscardUnknown()
- func (m *Paper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Paper) XXX_Merge(src proto.Message)
- func (m *Paper) XXX_Size() int
- func (m *Paper) XXX_Unmarshal(b []byte) error
- type Researcher
- func (*Researcher) Descriptor() ([]byte, []int)
- func (r *Researcher) FirstOrCreate(dg *dgo.Dgraph) error
- func (m *Researcher) GetName() string
- func (m *Researcher) GetPaper() []*Paper
- func (m *Researcher) GetUid() string
- func (*Researcher) ProtoMessage()
- func (m *Researcher) Reset()
- func (m *Researcher) String() string
- func (m *Researcher) XXX_DiscardUnknown()
- func (m *Researcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Researcher) XXX_Merge(src proto.Message)
- func (m *Researcher) XXX_Size() int
- func (m *Researcher) XXX_Unmarshal(b []byte) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateUserInput ¶
type CreateUserInput struct { Username string `json:"name"` Password string `json:"password"` Email string `json:"email"` Phone string `json:"phone"` }
CreateUserInput is the input for creating user
func (CreateUserInput) Valid ¶
func (i CreateUserInput) Valid() bool
Valid is the method to check the input's validation
type Paper ¶
type Paper struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Journal string `protobuf:"bytes,2,opt,name=journal,proto3" json:"journal,omitempty"` JournalName string `protobuf:"bytes,3,opt,name=journal_name,json=journalName,proto3" json:"journal_name,omitempty"` Author []*Researcher `protobuf:"bytes,4,rep,name=author,proto3" json:"author,omitempty"` Date string `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"` Pagination string `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"` IssueNumber string `protobuf:"bytes,7,opt,name=issueNumber,proto3" json:"issueNumber,omitempty"` VolumeNumber string `protobuf:"bytes,8,opt,name=volumeNumber,proto3" json:"volumeNumber,omitempty"` Genre string `protobuf:"bytes,9,opt,name=genre,proto3" json:"genre,omitempty"` Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Paper) Descriptor ¶
func (*Paper) GetAuthor ¶
func (m *Paper) GetAuthor() []*Researcher
func (*Paper) GetIssueNumber ¶
func (*Paper) GetJournal ¶
func (*Paper) GetJournalName ¶
func (*Paper) GetPagination ¶
func (*Paper) GetVolumeNumber ¶
func (*Paper) ProtoMessage ¶
func (*Paper) ProtoMessage()
func (*Paper) XXX_DiscardUnknown ¶
func (m *Paper) XXX_DiscardUnknown()
func (*Paper) XXX_Marshal ¶
func (*Paper) XXX_Unmarshal ¶
type Researcher ¶
type Researcher struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Paper []*Paper `protobuf:"bytes,2,rep,name=paper,proto3" json:"paper,omitempty"` Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Researcher) Descriptor ¶
func (*Researcher) Descriptor() ([]byte, []int)
func (*Researcher) FirstOrCreate ¶
func (r *Researcher) FirstOrCreate(dg *dgo.Dgraph) error
func (*Researcher) GetName ¶
func (m *Researcher) GetName() string
func (*Researcher) GetPaper ¶
func (m *Researcher) GetPaper() []*Paper
func (*Researcher) GetUid ¶
func (m *Researcher) GetUid() string
func (*Researcher) ProtoMessage ¶
func (*Researcher) ProtoMessage()
func (*Researcher) Reset ¶
func (m *Researcher) Reset()
func (*Researcher) String ¶
func (m *Researcher) String() string
func (*Researcher) XXX_DiscardUnknown ¶
func (m *Researcher) XXX_DiscardUnknown()
func (*Researcher) XXX_Marshal ¶
func (m *Researcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Researcher) XXX_Merge ¶
func (m *Researcher) XXX_Merge(src proto.Message)
func (*Researcher) XXX_Size ¶
func (m *Researcher) XXX_Size() int
func (*Researcher) XXX_Unmarshal ¶
func (m *Researcher) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.