model

package
v0.0.0-...-ce64a08 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Message

type Message struct {
	Topic   string            `json:"topic"`
	Title   string            `json:"title"`
	Content string            `json:"content"`
	Format  string            `json:"format"`
	URL     string            `json:"url"`
	SendAt  time.Time         `json:"sendAt"`
	Extras  map[string]string `json:"extras"`
}

SubscriptionAction is a generic type for all subscription actions

type MessageFilter

type MessageFilter struct {
	TenantID int    `json:"tenantId"`
	AppCode  string `json:"appCode"`
	UserID   int    `json:"userId"`
	DeviceID string `json:"deviceId"`
}

MessageFilter is a generic type for all subscription filters

type RouteStrType

type RouteStrType string
const (
	RouteStrTypeJSON RouteStrType = "Json"
	RouteStrTypeYaml RouteStrType = "Yaml"
)

func (RouteStrType) IsValid

func (e RouteStrType) IsValid() bool

func (RouteStrType) MarshalGQL

func (e RouteStrType) MarshalGQL(w io.Writer)

func (RouteStrType) String

func (e RouteStrType) String() string

func (*RouteStrType) UnmarshalGQL

func (e *RouteStrType) UnmarshalGQL(v interface{}) error

type Subscription

type Subscription struct {
}

Jump to

Keyboard shortcuts

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