sqlstore

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageRepository added in v1.0.1

type MessageRepository struct {
	// contains filtered or unexported fields
}

func (*MessageRepository) Create added in v1.0.1

func (r *MessageRepository) Create(ctx context.Context, message *domain.Message) error

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(conf *config.Database) (*Store, error)

func TestDB

func TestDB(t *testing.T, conf *config.Database) (*Store, func(...string))

TestDB returns special test connection and teardown function.

func (*Store) Message added in v1.0.1

func (s *Store) Message() domain.MessageRepository

Jump to

Keyboard shortcuts

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