contacts

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	weaver.AutoMarshal
	Username   string `gorm:"not null"`
	Label      string `gorm:"not null"`
	AccountNum string `gorm:"not null"`
	RoutingNum string `gorm:"not null"`
	IsExternal bool   `gorm:"not null"`
}

Contact represents an account's contact details.

func (*Contact) WeaverMarshal

func (x *Contact) WeaverMarshal(enc *codegen.Encoder)

func (*Contact) WeaverUnmarshal

func (x *Contact) WeaverUnmarshal(dec *codegen.Decoder)

type T

type T interface {
	// GetContacts returns a list of contacts of a user.
	GetContacts(ctx context.Context, username string) ([]Contact, error)
	// AddContact adds a new contact for a user.
	AddContact(ctx context.Context, authenticatedAccountID string, contact Contact) error
}

Jump to

Keyboard shortcuts

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