pusher

package
v0.0.0-...-28871d7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeOrder

type FakeOrder struct {
	Person *Person `json:"person"`
	Order  *Order  `json:"order"`
}

type Order

type Order struct {
	ID   string      `fake:"{uuid}"`
	Date time.Time   `fake:"{date}"`
	CC   interface{} `fake:"{creditcard}"`
}

type Person

type Person struct {
	Name  string `fake:"{firstname}"`
	Email string `fake:"{email}"`
	Phone string `fake:"{phone}"`
}

type Pusher

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

func New

func New(stream, user, service string, interval int) (*Pusher, error)

func (*Pusher) Start

func (p *Pusher) Start() error

func (*Pusher) Stop

func (p *Pusher) Stop()

Jump to

Keyboard shortcuts

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