Documentation
¶
Index ¶
Constants ¶
View Source
const (
GitHubStoreQuery = `` /* 216-byte string literal not displayed */
)
queries.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct { Payload any Event string TargetType string UserLogin string DeliveryID uuid.UUID TargetID uint64 HookID uint64 UserID int64 KafkaOffset int64 KafkaPartition int32 }
GitHub represents `github` table model fields.
type GitHubStorage ¶
GitHubStorage implements GitHubPingStorer interface.
func New ¶
func New(ctx context.Context, options ...Option) (*GitHubStorage, error)
New instantiates new github storage.
func (GitHubStorage) MessageStore ¶
func (s GitHubStorage) MessageStore(ctx context.Context, message *sarama.ConsumerMessage) error
MessageStore stores received kafka message to database.
type Option ¶
type Option func(*GitHubStorage) error
Option represents option function type.
func WithDatabaseDSN ¶
WithDatabaseDSN sets database data source.
Click to show internal directories.
Click to hide internal directories.