mirror of
https://github.com/status-im/status-go.git
synced 2025-01-14 08:44:46 +00:00
25 lines
535 B
Go
25 lines
535 B
Go
package server
|
|
|
|
// EventType type for event types.
|
|
type EventType string
|
|
|
|
const (
|
|
EventConnectionError EventType = "connection-error"
|
|
|
|
EventConnectionSuccess EventType = "connection-success"
|
|
|
|
EventTransferError EventType = "transfer-error"
|
|
|
|
EventTransferSuccess EventType = "transfer-success"
|
|
|
|
EventProcessSuccess EventType = "process-success"
|
|
|
|
EventProcessError EventType = "process-error"
|
|
)
|
|
|
|
// Event is a type for transfer events.
|
|
type Event struct {
|
|
Type EventType `json:"type"`
|
|
Error string `json:"error,omitempty"`
|
|
}
|