storage

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 4 Imported by: 0

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.

type Pinger added in v0.1.4

type Pinger interface {
	Ping(ctx context.Context, maxRetries uint8, backoff time.Duration) error
}

Pinger defines ping behaviour.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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