message

package
v0.1.0-alpha-2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(dbClient *gorm.DB) *Repository

func (Repository) Create

func (m Repository) Create(message *entity.Message) error

func (Repository) Exist

func (m Repository) Exist(transferID, signature, hash string) (bool, error)

func (Repository) Get

func (m Repository) Get(transferID string) ([]entity.Message, error)

func (Repository) GetMessageWith

func (m Repository) GetMessageWith(transferID, signature, hash string) (*entity.Message, error)

Jump to

Keyboard shortcuts

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