Documentation
¶
Index ¶
Constants ¶
View Source
const (
GitLabStoreQuery = `` /* 222-byte string literal not displayed */
)
queries.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLab ¶
type GitLab struct {
Payload any
ObjectKind string
ProjectPath *string
UserUsername *string
EventUUID uuid.UUID
WebhookUUID uuid.UUID
ProjectID *int64
UserID *int64
KafkaOffset int64
KafkaPartition int32
}
GitLab represents `gitlab` table model fields.
type GitLabStorage ¶
GitLabStorage implements GitLabPingStorer interface.
func New ¶
func New(ctx context.Context, options ...Option) (*GitLabStorage, error)
New instantiates new gitlab storage.
func (GitLabStorage) MessageStore ¶
func (s GitLabStorage) MessageStore(ctx context.Context, message *sarama.ConsumerMessage) error
MessageStore stores received kafka message to database.
type Option ¶
type Option func(*GitLabStorage) error
Option represents option function type.
func WithDatabaseDSN ¶
WithDatabaseDSN sets database data source.
Click to show internal directories.
Click to hide internal directories.