notificationchannel

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID    string
	Name  string
	Type  Type
	Value string
}

func (Channel) Normalize

func (c Channel) Normalize() (*Channel, error)

func (Channel) TableName added in v0.30.0

func (Channel) TableName() string

type Store

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

func NewStore added in v0.30.0

func NewStore(ctx context.Context, db *sql.DB) (*Store, error)

func (*Store) DeleteManyTx

func (s *Store) DeleteManyTx(ctx context.Context, tx *sql.Tx, ids []string) error

func (*Store) FindAll

func (s *Store) FindAll(ctx context.Context) ([]Channel, error)

func (*Store) FindMany added in v0.30.0

func (s *Store) FindMany(ctx context.Context, ids []string) ([]Channel, error)

func (*Store) FindOne

func (s *Store) FindOne(ctx context.Context, id uuid.UUID) (*Channel, error)

func (*Store) MapToID added in v0.28.0

func (s *Store) MapToID(ctx context.Context, tx *sql.Tx, c *Channel) (uuid.UUID, error)

type Type

type Type string
const (
	TypeUnknown Type = ""
	TypeSlack   Type = "SLACK"
)

func (*Type) Scan

func (r *Type) Scan(value interface{}) error

Scan handles reading a Type from the DB format

func (Type) Valid added in v0.28.0

func (t Type) Valid() bool

Valid returns true if t is a known Type.

func (Type) Value added in v0.28.0

func (t Type) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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