notifications

package
v0.9.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Describe added in v0.5.0

func Describe(i interface{}) (string, string)

func NewID added in v0.9.2

func NewID() string

func Serialize

func Serialize(i interface{}) []byte

Types

type ChatMessage added in v0.3.1

type ChatMessage struct {
	MessageId string    `json:"messageId"`
	PeerId    string    `json:"peerId"`
	Subject   string    `json:"subject"`
	Message   string    `json:"message"`
	Timestamp time.Time `json:"timestamp"`
}

type ChatRead added in v0.5.0

type ChatRead struct {
	MessageId string `json:"messageId"`
	PeerId    string `json:"peerId"`
	Subject   string `json:"subject"`
}

type ChatTyping added in v0.5.0

type ChatTyping struct {
	PeerId  string `json:"peerId"`
	Subject string `json:"subject"`
}

type CompletionNotification added in v0.2.2

type CompletionNotification struct {
	ID          string    `json:"notificationId"`
	Type        string    `json:"type"`
	OrderId     string    `json:"orderId"`
	Thumbnail   Thumbnail `json:"thumbnail"`
	BuyerHandle string    `json:"buyerHandle"`
	BuyerID     string    `json:"buyerId"`
}

type Data added in v0.3.1

type Data interface {
}

type DisputeAcceptedNotification added in v0.7.0

type DisputeAcceptedNotification struct {
	ID               string    `json:"notificationId"`
	Type             string    `json:"type"`
	OrderId          string    `json:"orderId"`
	Thumbnail        Thumbnail `json:"thumbnail"`
	OherPartyID      string    `json:"otherPartyId"`
	OtherPartyHandle string    `json:"otherPartyHandle"`
	Buyer            string    `json:"buyer"`
}

type DisputeCloseNotification added in v0.3.0

type DisputeCloseNotification struct {
	ID               string    `json:"notificationId"`
	Type             string    `json:"type"`
	OrderId          string    `json:"orderId"`
	Thumbnail        Thumbnail `json:"thumbnail"`
	OtherPartyID     string    `json:"otherPartyId"`
	OtherPartyHandle string    `json:"otherPartyHandle"`
	Buyer            string    `json:"buyer"`
}

type DisputeOpenNotification added in v0.3.0

type DisputeOpenNotification struct {
	ID             string    `json:"notificationId"`
	Type           string    `json:"type"`
	OrderId        string    `json:"orderId"`
	Thumbnail      Thumbnail `json:"thumbnail"`
	DisputerID     string    `json:"disputerId"`
	DisputerHandle string    `json:"disputerHandle"`
	DisputeeID     string    `json:"disputeeId"`
	DisputeeHandle string    `json:"disputeeHandle"`
	Buyer          string    `json:"buyer"`
}

type DisputeUpdateNotification added in v0.3.0

type DisputeUpdateNotification struct {
	ID             string    `json:"notificationId"`
	Type           string    `json:"type"`
	OrderId        string    `json:"orderId"`
	Thumbnail      Thumbnail `json:"thumbnail"`
	DisputerID     string    `json:"disputerId"`
	DisputerHandle string    `json:"disputerHandle"`
	DisputeeID     string    `json:"disputeeId"`
	DisputeeHandle string    `json:"disputeeHandle"`
	Buyer          string    `json:"buyer"`
}

type FollowNotification

type FollowNotification struct {
	ID     string `json:"notificationId"`
	Type   string `json:"type"`
	PeerId string `json:"peerId"`
}

type FulfillmentNotification added in v0.2.2

type FulfillmentNotification struct {
	ID           string    `json:"notificationId"`
	Type         string    `json:"type"`
	OrderId      string    `json:"orderId"`
	Thumbnail    Thumbnail `json:"thumbnail"`
	VendorHandle string    `json:"vendorHandle"`
	VendorID     string    `json:"vendorId"`
}

type IncomingTransaction added in v0.5.3

type IncomingTransaction struct {
	Txid          string    `json:"txid"`
	Value         int64     `json:"value"`
	Address       string    `json:"address"`
	Status        string    `json:"status"`
	Memo          string    `json:"memo"`
	Timestamp     time.Time `json:"timestamp"`
	Confirmations int32     `json:"confirmations"`
	OrderId       string    `json:"orderId"`
	Thumbnail     string    `json:"thumbnail"`
	Height        int32     `json:"height"`
	CanBumpFee    bool      `json:"canBumpFee"`
}

type ModeratorAddNotification added in v0.5.1

type ModeratorAddNotification struct {
	ID     string `json:"notificationId"`
	Type   string `json:"type"`
	PeerId string `json:"peerId"`
}

type ModeratorRemoveNotification added in v0.5.1

type ModeratorRemoveNotification struct {
	ID     string `json:"notificationId"`
	Type   string `json:"type"`
	PeerId string `json:"peerId"`
}

type Notification added in v0.3.1

type Notification struct {
	Data      Data      `json:"notification"`
	Timestamp time.Time `json:"timestamp"`
	Read      bool      `json:"read"`
}

type OrderCancelNotification added in v0.2.1

type OrderCancelNotification struct {
	ID          string    `json:"notificationId"`
	Type        string    `json:"type"`
	OrderId     string    `json:"orderId"`
	Thumbnail   Thumbnail `json:"thumbnail"`
	BuyerHandle string    `json:"buyerHandle"`
	BuyerID     string    `json:"buyerId"`
}

type OrderConfirmationNotification added in v0.2.1

type OrderConfirmationNotification struct {
	ID           string    `json:"notificationId"`
	Type         string    `json:"type"`
	OrderId      string    `json:"orderId"`
	Thumbnail    Thumbnail `json:"thumbnail"`
	VendorHandle string    `json:"vendorHandle"`
	VendorID     string    `json:"vendorId"`
}

type OrderDeclinedNotification added in v0.6.4

type OrderDeclinedNotification struct {
	ID           string    `json:"notificationId"`
	Type         string    `json:"type"`
	OrderId      string    `json:"orderId"`
	Thumbnail    Thumbnail `json:"thumbnail"`
	VendorHandle string    `json:"vendorHandle"`
	VendorID     string    `json:"vendorId"`
}

type OrderNotification

type OrderNotification struct {
	ID          string    `json:"notificationId"`
	Type        string    `json:"type"`
	Title       string    `json:"title"`
	BuyerID     string    `json:"buyerId"`
	BuyerHandle string    `json:"buyerHandle"`
	Thumbnail   Thumbnail `json:"thumbnail"`
	OrderId     string    `json:"orderId"`
	Slug        string    `json:"slug"`
}

type PaymentNotification

type PaymentNotification struct {
	ID           string `json:"notificationId"`
	Type         string `json:"type"`
	OrderId      string `json:"orderId"`
	FundingTotal uint64 `json:"fundingTotal"`
}

type RefundNotification added in v0.2.1

type RefundNotification struct {
	ID           string    `json:"notificationId"`
	Type         string    `json:"type"`
	OrderId      string    `json:"orderId"`
	Thumbnail    Thumbnail `json:"thumbnail"`
	VendorHandle string    `json:"vendorHandle"`
	VendorID     string    `json:"vendorId"`
}

type StatusNotification added in v0.5.0

type StatusNotification struct {
	Status string `json:"status"`
}

type TestNotification added in v0.9.2

type TestNotification struct{}

type Thumbnail added in v0.6.4

type Thumbnail struct {
	Tiny  string `json:"tiny"`
	Small string `json:"small"`
}

type UnfollowNotification

type UnfollowNotification struct {
	ID     string `json:"notificationId"`
	Type   string `json:"type"`
	PeerId string `json:"peerId"`
}

Jump to

Keyboard shortcuts

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