postgres

package
v0.0.0-...-368ee11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSchema

func LoadSchema() (*sqlx.DB, error)

func NewConnection

func NewConnection() (*sqlx.DB, error)

Types

type BibleVerseService

type BibleVerseService struct {
	*sqlx.DB
}

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

type MemberService struct {
	*sqlx.DB
}

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

type RankService struct {
	*sqlx.DB
}

func (*RankService) AddRank

func (s *RankService) AddRank(r mater.Rank) (int64, error)

func (*RankService) GetGuildRanks

func (s *RankService) GetGuildRanks(guildID string) ([]mater.Rank, error)

func (*RankService) GetRank

func (s *RankService) GetRank(guildID string, roleID 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL