Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRouteStrType = []RouteStrType{ RouteStrTypeJSON, RouteStrTypeYaml, }
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 { }
Click to show internal directories.
Click to hide internal directories.