notify

package
v0.3.7-alpha4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* @Author: LinkLeong link@icewhale.com * @Date: 2022-05-27 15:01:58 * @LastEditors: LinkLeong * @LastEditTime: 2022-05-31 14:51:21 * @FilePath: /CasaOS/model/notify/application.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.

* @Author: LinkLeong link@icewhale.com * @Date: 2022-05-26 14:21:57 * @LastEditors: LinkLeong * @LastEditTime: 2022-06-02 11:14:15 * @FilePath: /CasaOS/model/notify/file.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.

* @Author: LinkLeong link@icewhale.com * @Date: 2022-05-26 14:39:22 * @LastEditors: LinkLeong * @LastEditTime: 2022-05-26 19:08:52 * @FilePath: /CasaOS/model/notify/message.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.

* @Author: LinkLeong link@icewhale.com * @Date: 2022-07-15 10:43:00 * @LastEditors: LinkLeong * @LastEditTime: 2022-07-15 10:56:17 * @FilePath: /CasaOS/model/notify/storage.go * @Description: * @Website: https://www.casaos.io * Copyright (c) 2022 by icewhale, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name     string `json:"name"`
	State    string `json:"state"`
	Type     string `json:"type"`
	Icon     string `json:"icon"`
	Message  string `json:"message"`
	Finished bool   `json:"finished"`
	Success  bool   `json:"success"`
}

type File

type File struct {
	Finished       bool   `json:"finished"`
	ProcessedSize  int64  `json:"processed_size"`
	ProcessingPath string `json:"processing_path"`
	Status         string `json:"status"`
	TotalSize      int64  `json:"total_size"`
	Id             string `json:"id"`
	To             string `json:"to"`
	Type           string `json:"type"`
}

type Message

type Message struct {
	Path string    `json:"path"`
	Msg  f.Message `json:"msg"`
}

type NotifyModel

type NotifyModel struct {
	Data  interface{} `json:"data"`
	State string      `json:"state"`
}

Notify struct for Notify

type StorageMessage added in v0.3.4

type StorageMessage struct {
	Type   string `json:"type"`   //sata,usb
	Action string `json:"action"` //remove add
	Path   string `json:"path"`
	Volume string `json:"volume"`
	Size   uint64 `json:"size"`
}

Jump to

Keyboard shortcuts

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