Documentation ¶
Index ¶
- func LoadSchema() (*sqlx.DB, error)
- func NewConnection() (*sqlx.DB, error)
- type BibleVerseService
- type MemberService
- func (s *MemberService) AddMember(errCh chan error, m mater.Member)
- func (s *MemberService) GetMember(mCh chan *mater.Member, errCh chan error, memberID string)
- func (s *MemberService) GetMembers(mCh chan []mater.Member, errCh chan error)
- func (s *MemberService) RemoveMember(errCh chan error, memberID string)
- func (s *MemberService) UpdateMember(errCh chan error, newMember *mater.Member)
- type RankService
- func (s *RankService) AddRank(r mater.Rank) (int64, error)
- func (s *RankService) GetGuildRanks(guildID string) ([]mater.Rank, error)
- func (s *RankService) GetRank(guildID string, roleID string) (*mater.Rank, error)
- func (s *RankService) RemoveRank(rankID int64) (int64, error)
- func (s *RankService) UpdateRank(newRank mater.Rank) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSchema ¶
func NewConnection ¶
Types ¶
type BibleVerseService ¶
func (*BibleVerseService) GetBibleVerse ¶
func (b *BibleVerseService) GetBibleVerse(version, book string, chapter, verse int) (*mater.BibleVerse, error)
func (*BibleVerseService) GetBibleVerses ¶
func (b *BibleVerseService) GetBibleVerses(version, book string, chapter, start, end int) ([]mater.BibleVerse, error)
type MemberService ¶
func (*MemberService) AddMember ¶
func (s *MemberService) AddMember(errCh chan error, m mater.Member)
func (*MemberService) GetMember ¶
func (s *MemberService) GetMember(mCh chan *mater.Member, errCh chan error, memberID string)
func (*MemberService) GetMembers ¶
func (s *MemberService) GetMembers(mCh chan []mater.Member, errCh chan error)
func (*MemberService) RemoveMember ¶
func (s *MemberService) RemoveMember(errCh chan error, memberID string)
func (*MemberService) UpdateMember ¶
func (s *MemberService) UpdateMember(errCh chan error, newMember *mater.Member)
type RankService ¶
func (*RankService) GetGuildRanks ¶
func (s *RankService) GetGuildRanks(guildID string) ([]mater.Rank, error)
func (*RankService) RemoveRank ¶
func (s *RankService) RemoveRank(rankID int64) (int64, error)
func (*RankService) UpdateRank ¶
func (s *RankService) UpdateRank(newRank mater.Rank) (int64, error)
Click to show internal directories.
Click to hide internal directories.