Documentation ¶
Index ¶
- func Close(wg *sync.WaitGroup) error
- func Cluster() string
- func Database() string
- func Host() string
- func MaxConnections() int32
- func MinConnections() int32
- func Password() string
- func Port() string
- func SSLMode() string
- func SSLRootCert() string
- func SetCluster(newCluster string)
- func SetDatabase(newDatabase string)
- func SetHost(newHost string)
- func SetMaxConnections(newMax int32)
- func SetMinConnections(newMin int32)
- func SetPassword(newPassword string)
- func SetPort(newPort string)
- func SetSSLMode(newSSLMode string)
- func SetSSLRootCert(newSSLRootCert string)
- func SetUser(newUser string)
- func User() string
- type Conn
- func (c *Conn) AddPost(request models.SendPostRequest) error
- func (c *Conn) Close(context.Context) error
- func (c *Conn) FindUser(filter map[string]string) (models.User, error)
- func (c *Conn) GetPosts(page, num int) ([]models.PostDisplay, error)
- func (c *Conn) GetPostsSince(max int, since time.Time) ([]models.PostDisplay, int, error)
- func (c *Conn) GetPublicKey(email string) (ssh.PublicKey, error)
- func (c *Conn) RegisterUser(request models.RegisterRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxConnections ¶ added in v0.4.0
func MaxConnections() int32
func MinConnections ¶ added in v0.4.0
func MinConnections() int32
func SSLRootCert ¶
func SSLRootCert() string
func SetCluster ¶
func SetCluster(newCluster string)
func SetDatabase ¶
func SetDatabase(newDatabase string)
func SetMaxConnections ¶ added in v0.4.0
func SetMaxConnections(newMax int32)
func SetMinConnections ¶ added in v0.4.0
func SetMinConnections(newMin int32)
func SetPassword ¶
func SetPassword(newPassword string)
func SetSSLMode ¶
func SetSSLMode(newSSLMode string)
func SetSSLRootCert ¶
func SetSSLRootCert(newSSLRootCert string)
Types ¶
type Conn ¶
func (*Conn) AddPost ¶
func (c *Conn) AddPost(request models.SendPostRequest) error
TODO Use user model
func (*Conn) GetPostsSince ¶ added in v0.4.0
func (*Conn) RegisterUser ¶
func (c *Conn) RegisterUser(request models.RegisterRequest) error
Click to show internal directories.
Click to hide internal directories.