serializer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionAuthDetails

type SubscriptionAuthDetails struct {
	Result []*SubscriptionAuthPayload `json:"result"`
}

type SubscriptionAuthPayload

type SubscriptionAuthPayload struct {
	ServerURL string `json:"server_url"`
	APISecret string `json:"api_secret"`
}

type SubscriptionPayload

type SubscriptionPayload struct {
	UserID           string `json:"mm_user_id"`
	ChannelID        string `json:"channel_id"`
	RecordType       string `json:"record_type"`
	RecordID         string `json:"record_id"`
	SubscriptionType string `json:"subscription_type"`
	Level            string `json:"level"`
	ServerURL        string `json:"server_url"`
	IsActive         bool   `json:"is_active"`
}

func (*SubscriptionPayload) IsValid

func (s *SubscriptionPayload) IsValid() error

type SubscriptionResponse

type SubscriptionResponse struct {
	SysID            string `json:"sys_id"`
	UserID           string `json:"mm_user_id"`
	ChannelID        string `json:"channel_id"`
	RecordType       string `json:"record_type"`
	RecordID         string `json:"record_id"`
	SubscriptionType string `json:"subscription_type"`
	Level            string `json:"level"`
	ServerURL        string `json:"server_url"`
	IsActive         string `json:"is_active"`
}

type SubscriptionsResult

type SubscriptionsResult struct {
	Result []*SubscriptionResponse `json:"result"`
}

Jump to

Keyboard shortcuts

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