Documentation
¶
Index ¶
- type DBConfig
- func (d *DBConfig) AddComment(postID int, comment model.Comment) error
- func (d *DBConfig) AddMember(autoID int, name string) error
- func (d *DBConfig) AddPost(post model.Post) (int, error)
- func (d *DBConfig) AddProviderInfo(oauth model.Oauth) (int, error)
- func (d *DBConfig) CheckProviderInfoExists(provider string, providerID string) (bool, error)
- func (d *DBConfig) DeleteComment(ID int) error
- func (d *DBConfig) DeleteMember(ID int) error
- func (d *DBConfig) DeletePost(ID int) error
- func (d *DBConfig) GetAllCommentsByPostId(postID int) ([]model.Comment, error)
- func (d *DBConfig) GetAllMembers() ([]model.Member, error)
- func (d *DBConfig) GetAllPosts() ([]model.Post, error)
- func (d *DBConfig) GetComment(ID int) (model.Comment, error)
- func (d *DBConfig) GetMember(ID int) (model.Member, error)
- func (d *DBConfig) GetPost(ID int) (model.Post, error)
- func (d *DBConfig) GetProviderInfo(provider string, providerID string) (int, error)
- func (d *DBConfig) UpdateComment(ID int, newComment model.Comment) error
- func (d *DBConfig) UpdateMember(ID int, newMemberInfo model.Member) error
- func (d *DBConfig) UpdatePost(ID int, newPost model.Post) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConfig ¶
func (*DBConfig) AddComment ¶
func (*DBConfig) AddProviderInfo ¶
func (*DBConfig) CheckProviderInfoExists ¶
func (*DBConfig) DeleteComment ¶
func (*DBConfig) DeleteMember ¶
func (*DBConfig) DeletePost ¶
func (*DBConfig) GetAllCommentsByPostId ¶
func (*DBConfig) GetProviderInfo ¶
func (*DBConfig) UpdateComment ¶
func (*DBConfig) UpdateMember ¶
Click to show internal directories.
Click to hide internal directories.