Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDBPingBackoff = 2 * time.Second DefaultDBPingMaxRetries = 10 DefaultDBPingTimeout = 5 * time.Second GitProviderGitHub GitProvider = "github" GitProviderGitLab GitProvider = "gitlab" GitProviderBitbucket GitProvider = "bitbucket" )
constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitProvider ¶ added in v0.1.4
type GitProvider string
GitProvider represents git platform.
func (GitProvider) String ¶ added in v0.1.4
func (g GitProvider) String() string
func (GitProvider) Valid ¶ added in v0.1.4
func (g GitProvider) Valid() bool
Valid checks if the GitProvider is valid.
type MessageStorer ¶ added in v0.1.4
type MessageStorer interface {
MessageStore(ctx context.Context, message *sarama.ConsumerMessage) error
}
MessageStorer defines kafka message store behaviour.
type PGPooler ¶ added in v0.1.4
type PGPooler interface {
Close()
Ping(ctx context.Context) error
Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
}
PGPooler defines pgxpool behaviours.
type PingStorer ¶ added in v0.1.4
type PingStorer interface {
Pinger
MessageStorer
}
PingStorer is a combination of pinger and storer functionality.
Click to show internal directories.
Click to hide internal directories.