message

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 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 CloudMessageHandler

type CloudMessageHandler interface {
	HandleEventPodSubscribe(info *domain.PodInfo) error
	HandleEventPodRelease(podId, cloudType string) error
}

type CloudMessageProducer

type CloudMessageProducer interface {
	SubscribeCloud(*MsgCloudConf) error
	ReleaseCloud(*ReleaseCloudEvent) error
}

type CloudRecordEvent

type CloudRecordEvent struct {
	Owner  types.Account
	ClouId string
}

type CloudRecordEventPublisher

type CloudRecordEventPublisher interface {
	Publish(*CloudRecordEvent) error
}

type MsgCloudConf

type MsgCloudConf struct {
	User          string `json:"user"`
	PodId         string `json:"pod_id"`
	CloudId       string `json:"cloud_id"`
	CloudName     string `json:"cloud_name"`
	CloudImage    string `json:"cloud_image"`
	CloudCardsNum int    `json:"cloud_cards_num"`
}

func (*MsgCloudConf) ToMsgCloudConf

func (r *MsgCloudConf) ToMsgCloudConf(
	c *domain.CloudConf, u types.Account, pid string, cloudImage domain.ICloudImage, cardsNum domain.CloudSpecCardsNum,
)

type MsgPod

type MsgPod struct {
	PodId   string `json:"pod_id"`
	CloudId string `json:"cloud_id"`
	Owner   string `json:"owner"`
}

func (*MsgPod) ToMsgPod

func (r *MsgPod) ToMsgPod(p *domain.Pod)

type ReleaseCloudEvent

type ReleaseCloudEvent struct {
	PodId     string `json:"pod_id"`
	CloudType string `json:"cloud_type"`
}

Jump to

Keyboard shortcuts

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