types

package
v0.0.0-...-3be5031 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONObject

type JSONObject map[string]interface{}

JSONObject binds a map[string]interface{} to a `jsonb` database field

func (*JSONObject) Scan

func (obj *JSONObject) Scan(value interface{}) error

func (JSONObject) Value

func (obj JSONObject) Value() (driver.Value, error)

type Notification

type Notification struct {
	Id               int64      `json:"id"`
	Target           string     `json:"target"`
	NotificationType string     `json:"notificationType"`
	StartsOn         int64      `json:"startsOn"`
	ExpiresOn        int64      `json:"expiresOn"`
	Message          string     `json:"message"`
	Metadata         JSONObject `json:"metadata"`
}

Jump to

Keyboard shortcuts

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