publisher

package
v0.0.0-...-4fa38d6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppClientEventPublisher

type AppClientEventPublisher struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() AppClientEventPublisher

func (*AppClientEventPublisher) HandleAuthResponse

func (publisher *AppClientEventPublisher) HandleAuthResponse(message []byte) *string

func (*AppClientEventPublisher) HandleButtonPress

func (publisher *AppClientEventPublisher) HandleButtonPress(message []byte)

func (*AppClientEventPublisher) HandleChannelPropertiesUpdated

func (publisher *AppClientEventPublisher) HandleChannelPropertiesUpdated(message []byte)

func (*AppClientEventPublisher) HandleChannels

func (publisher *AppClientEventPublisher) HandleChannels(message []byte)

func (*AppClientEventPublisher) HandleChannelsSubscribed

func (publisher *AppClientEventPublisher) HandleChannelsSubscribed(message []byte)

func (*AppClientEventPublisher) HandleClientChannelGroupChanged

func (publisher *AppClientEventPublisher) HandleClientChannelGroupChanged(message []byte)

func (*AppClientEventPublisher) HandleClientMoved

func (publisher *AppClientEventPublisher) HandleClientMoved(message []byte)

func (*AppClientEventPublisher) HandleClientPropertyUpdated

func (publisher *AppClientEventPublisher) HandleClientPropertyUpdated(message []byte)

func (*AppClientEventPublisher) HandleClientSelfPropertyUpdated

func (publisher *AppClientEventPublisher) HandleClientSelfPropertyUpdated(message []byte)

func (*AppClientEventPublisher) HandleConnectStatusChanged

func (publisher *AppClientEventPublisher) HandleConnectStatusChanged(message []byte)

func (*AppClientEventPublisher) HandleGroupInfo

func (publisher *AppClientEventPublisher) HandleGroupInfo(message []byte)

func (*AppClientEventPublisher) HandleNeededPermissions

func (publisher *AppClientEventPublisher) HandleNeededPermissions(message []byte)

func (*AppClientEventPublisher) HandlePermissionList

func (publisher *AppClientEventPublisher) HandlePermissionList(message []byte)

func (*AppClientEventPublisher) HandleServerPropertiesUpdated

func (publisher *AppClientEventPublisher) HandleServerPropertiesUpdated(message []byte)

func (*AppClientEventPublisher) PublishEvent

func (publisher *AppClientEventPublisher) PublishEvent(event event.AppEvent, args ...interface{})

func (*AppClientEventPublisher) SubscribeEvent

func (publisher *AppClientEventPublisher) SubscribeEvent(event event.AppEvent, fn interface{}) error

func (*AppClientEventPublisher) UnsubscribeEvent

func (publisher *AppClientEventPublisher) UnsubscribeEvent(event event.AppEvent, handler interface{}) error

type AuthResponse

type AuthResponse struct {
	Status struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"status"`
	Payload AuthResponsePayload `json:"payload"`
}

type AuthResponsePayload

type AuthResponsePayload struct {
	ApiKey              string             `json:"apiKey"`
	Connections         []types.Connection `json:"connections"`
	CurrentConnectionId int                `json:"currentConnectionId"`
}

type ButtonPressResponse

type ButtonPressResponse struct {
	Payload struct {
		Button string `json:"button"`
		State  bool   `json:"state"`
	} `json:"payload"`
	ReturnCode string `json:"returnCode"`
	Status     struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"status"`
	Type string `json:"type"`
}

type ChannelPropertiesUpdatedResponse

type ChannelPropertiesUpdatedResponse struct {
	Payload ChannelPropertiesUpdatedResponsePayload `json:"payload"`
}

type ChannelPropertiesUpdatedResponsePayload

type ChannelPropertiesUpdatedResponsePayload struct {
	ChannelId    string                 `json:"channelId"`
	ConnectionId int                    `json:"connectionId"`
	Properties   map[string]interface{} `json:"properties"`
}

type ChannelsResponse

type ChannelsResponse struct {
	Payload ChannelsResponsePayload `json:"payload"`
}

type ChannelsResponsePayload

type ChannelsResponsePayload struct {
	ConnectionId int               `json:"connectionId"`
	Info         types.ChannelInfo `json:"info"`
}

type ChannelsSubscribedResponse

type ChannelsSubscribedResponse struct {
	Payload ChannelsSubscribedResponsePayload `json:"payload"`
}

type ChannelsSubscribedResponsePayload

type ChannelsSubscribedResponsePayload struct {
	ChannelIds   interface{} `json:"channelIds"` //TODO
	ConnectionId int         `json:"connectionId"`
}

type ClientChannelGroupChangedResponse

type ClientChannelGroupChangedResponse struct {
	Payload ClientChannelGroupChangedResponsePayload `json:"payload"`
}

type ClientChannelGroupChangedResponsePayload

type ClientChannelGroupChangedResponsePayload struct {
	ChannelGroupId                 string `json:"channelGroupId"`
	ChannelGroupInheritedChannelId string `json:"channelGroupInheritedChannelId"`
	ChannelId                      string `json:"channelId"`
	ClientId                       int    `json:"clientId"`
	ConnectionId                   int    `json:"connectionId"`
}

type ClientMovedResponse

type ClientMovedResponse struct {
	Payload ClientMovedResponsePayload `json:"payload"`
}

type ClientMovedResponsePayload

type ClientMovedResponsePayload struct {
	ClientId     int                    `json:"clientId"`
	ConnectionId int                    `json:"connectionId"`
	Message      string                 `json:"message"`
	NewChannelId string                 `json:"newChannelId"`
	OldChannelId string                 `json:"oldChannelId"`
	Type         int                    `json:"type"`
	Visibility   int                    `json:"visibility"`
	Properties   types.ClientProperties `json:"properties,omitempty"`
}

type ClientPropertyUpdatedResponse

type ClientPropertyUpdatedResponse struct {
	Payload ClientPropertyUpdatedResponsePayload `json:"payload"`
}

type ClientPropertyUpdatedResponsePayload

type ClientPropertyUpdatedResponsePayload struct {
	ClientId     int                    `json:"clientId"`
	ConnectionId int                    `json:"connectionId"`
	Properties   types.ClientProperties `json:"properties"`
}

type ClientSelfPropertyUpdatedResponse

type ClientSelfPropertyUpdatedResponse struct {
	Payload ClientSelfPropertyUpdatedResponsePayload `json:"payload"`
}

type ClientSelfPropertyUpdatedResponsePayload

type ClientSelfPropertyUpdatedResponsePayload struct {
	ConnectionId int    `json:"connectionId"`
	Flag         string `json:"flag"`
	NewValue     string `json:"newValue"`
	OldValue     string `json:"oldValue"`
}

type ConnectStatusChangedResponse

type ConnectStatusChangedResponse struct {
	Payload ConnectStatusChangedResponsePayload `json:"payload"`
}

type ConnectStatusChangedResponsePayload

type ConnectStatusChangedResponsePayload struct {
	ConnectionId int `json:"connectionId"`
	Error        int `json:"error"`
	Info         struct {
		ClientId   int    `json:"clientId"`
		ServerName string `json:"serverName"`
		ServerUid  string `json:"serverUid"`
	} `json:"info"`
	Status int `json:"status"`
}

type GroupInfoResponse

type GroupInfoResponse struct {
	Payload GroupInfoResponsePayload `json:"payload"`
}

type GroupInfoResponsePayload

type GroupInfoResponsePayload struct {
	ConnectionId int               `json:"connectionId"`
	Data         []types.GroupInfo `json:"data"`
	Type         int               `json:"type"`
}

type NeededPermissionsResponse

type NeededPermissionsResponse struct {
	Payload NeededPermissionsResponsePayload `json:"payload"`
}

type NeededPermissionsResponsePayload

type NeededPermissionsResponsePayload struct {
	ConnectionId int            `json:"connectionId"`
	Data         map[string]int `json:"data"`
}

type PermissionListResponse

type PermissionListResponse struct {
	Payload PermissionListResponsePayload `json:"payload"`
	Type    string                        `json:"type"`
}

type PermissionListResponsePayload

type PermissionListResponsePayload struct {
	ConnectionId int                `json:"connectionId"`
	Data         []types.Permission `json:"data"`
	GroupEndIds  interface{}        `json:"groupEndIds"` //TODO
}

type ServerPropertiesUpdatedResponse

type ServerPropertiesUpdatedResponse struct {
	Payload ServerPropertiesUpdatedResponsePayload `json:"payload"`
}

type ServerPropertiesUpdatedResponsePayload

type ServerPropertiesUpdatedResponsePayload struct {
	ConnectionId int                    `json:"connectionId"`
	Properties   map[string]interface{} `json:"properties"`
}

Jump to

Keyboard shortcuts

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