fixtures

package
v0.0.0-...-59808bd Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fixtures provid fake data so we can mock the `Client` struct in mailjet_client.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixtures

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

Fixtures definition

func New

func New() *Fixtures

New loads fixtures in memory by iterating through its fixture method

func (*Fixtures) Contact

func (f *Fixtures) Contact() (*[]resources.Contact, []byte)

Contact fixture info

func (*Fixtures) ContactList

func (f *Fixtures) ContactList() (*[]resources.Contactslist, []byte)

ContactList fixture info

func (*Fixtures) ListRecipient

func (f *Fixtures) ListRecipient() (*[]resources.Listrecipient, []byte)

ListRecipient fixture info

func (*Fixtures) Read

func (f *Fixtures) Read(v interface{}) error

func (*Fixtures) Sender

func (f *Fixtures) Sender() (*[]resources.Sender, []byte)

Sender fixture info

func (*Fixtures) User

func (f *Fixtures) User() (*[]resources.User, []byte)

User fixture info

Jump to

Keyboard shortcuts

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