Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close(_ context.Context) error
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) DeleteMoveMapping(ctx context.Context, channelID, correlationID string) error
- func (c *Client) DropAllData(ctx context.Context) error
- func (c *Client) FindActiveChannels(ctx context.Context) ([]string, error)
- func (c *Client) FindChannelProcessingState(ctx context.Context, channelID string) (*common.ChannelProcessingState, error)
- func (c *Client) FindIssueBySlackPostID(ctx context.Context, channelID, postID string) (string, json.RawMessage, error)
- func (c *Client) FindMoveMapping(ctx context.Context, channelID, correlationID string) (json.RawMessage, error)
- func (c *Client) FindOpenIssueByCorrelationID(ctx context.Context, channelID, correlationID string) (string, json.RawMessage, error)
- func (c *Client) Init(ctx context.Context, skipSchemaValidation bool) error
- func (c *Client) LoadOpenIssuesInChannel(ctx context.Context, channelID string) (map[string]json.RawMessage, error)
- func (c *Client) MoveIssue(ctx context.Context, issue common.Issue, _, targetChannelID string) error
- func (c *Client) SaveAlert(ctx context.Context, alert *common.Alert) error
- func (c *Client) SaveChannelProcessingState(ctx context.Context, state *common.ChannelProcessingState) error
- func (c *Client) SaveIssue(ctx context.Context, issue common.Issue) error
- func (c *Client) SaveIssues(ctx context.Context, issues ...common.Issue) error
- func (c *Client) SaveMoveMapping(ctx context.Context, moveMapping common.MoveMapping) error
- type Option
- func WithAlertsTable(name string) Option
- func WithChannelProcessingStateTable(name string) Option
- func WithDatabase(database string) Option
- func WithHost(host string) Option
- func WithIssuesTable(name string) Option
- func WithMoveMappingsTable(name string) Option
- func WithPassword(password string) Option
- func WithPoolHealthCheckPeriod(d time.Duration) Option
- func WithPoolMaxConnectionIdleTime(d time.Duration) Option
- func WithPoolMaxConnectionLifetime(d time.Duration) Option
- func WithPoolMaxConnectionLifetimeJitter(d time.Duration) Option
- func WithPoolMaxConnections(n int32) Option
- func WithPoolMinConnections(n int32) Option
- func WithPoolMinIdleConnections(n int32) Option
- func WithPort(port int) Option
- func WithSSLMode(mode SSLMode) Option
- func WithUser(user string) Option
- type SSLMode
Constants ¶
View Source
const ( IssueModelVersion = 2 AlertModelVersion = 2 MoveMappingModelVersion = 2 ChannelProcessingStateModelVersion = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteMoveMapping ¶
func (*Client) FindActiveChannels ¶
func (*Client) FindChannelProcessingState ¶
func (*Client) FindIssueBySlackPostID ¶
func (*Client) FindMoveMapping ¶
func (*Client) FindOpenIssueByCorrelationID ¶
func (*Client) LoadOpenIssuesInChannel ¶
func (*Client) SaveChannelProcessingState ¶
func (*Client) SaveIssues ¶
func (*Client) SaveMoveMapping ¶
type Option ¶
type Option func(*options)
Option is a functional option for configuring a Client.
func WithAlertsTable ¶
func WithDatabase ¶
func WithIssuesTable ¶
func WithMoveMappingsTable ¶
func WithPassword ¶
func WithPoolMaxConnections ¶
func WithPoolMinConnections ¶
func WithSSLMode ¶
type SSLMode ¶
type SSLMode string
SSLMode represents PostgreSQL SSL connection modes.
const ( SSLModeDisable SSLMode = "disable" // No SSL SSLModeAllow SSLMode = "allow" // Try non-SSL first, then SSL SSLModePrefer SSLMode = "prefer" // Try SSL first, then non-SSL (default) SSLModeRequire SSLMode = "require" // Only SSL (no certificate verification) SSLModeVerifyCA SSLMode = "verify-ca" // SSL with CA verification SSLModeVerifyFull SSLMode = "verify-full" // SSL with CA and hostname verification )
Click to show internal directories.
Click to hide internal directories.