util

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestProducer added in v0.1.5

func CreateTestProducer() (kafka2.Producer, error)

func CreateTestUser added in v0.1.5

func CreateTestUser() *model.User

func GetSession added in v0.1.4

func GetSession(c *gin.Context) (*model.Session, error)

func SetupTestDatabase added in v0.1.5

func SetupTestDatabase() *gorm.DB

Types

type TestProducer added in v0.1.5

type TestProducer struct{}

func (*TestProducer) Produce added in v0.1.5

func (t *TestProducer) Produce(msg *kafka.Message, deliveryChan chan kafka.Event) error

Jump to

Keyboard shortcuts

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