envelopestore

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package envelopestore provides common implementation used by repositories that persist outbound envelopes.

Index

Constants

View Source
const Columns = `` /* 137-byte string literal not displayed */

Columns is the ordered set of columns that must be SELECTed for use with Scan().

Variables

This section is empty.

Functions

func Delete

func Delete(
	ctx context.Context,
	tx *sql.Tx,
	table string,
	env endpoint.OutboundEnvelope,
) error

Delete removes a message from the store.

func Insert

func Insert(
	ctx context.Context,
	tx *sql.Tx,
	table string,
	env endpoint.OutboundEnvelope,
) error

Insert adds a message to the store.

func Scan

Scan constructs an outbound envelope by scanning values using s.

Types

type Scanner

type Scanner interface {
	Scan(v ...interface{}) error
}

Scanner is an interface for scanning values from a row or rows.

Jump to

Keyboard shortcuts

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