service

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptClientOrder

func AcceptClientOrder(c *gin.Context, client *schema.ClientP2P)

func AddClient

func AddClient(c *gin.Context, param *mparam.AddClient) (code int, data *mmysql.Client)

func AddResource

func AddResource(c *gin.Context, param *mparam.AddResource) (code int)

func ClientList

func ClientList(c *gin.Context, param mparam.ClientList) (code int, ClientList mapi.ClientList)

func DelResource

func DelResource(c *gin.Context, uuid string) (code int)

func EditResource

func EditResource(c *gin.Context, param *mparam.EditResource) (code int)

func NotifyClient

func NotifyClient(c *gin.Context, param *mparam.NotifyClient) (code int)

func ResourceList

func ResourceList(c *gin.Context, param mparam.ResourceList) (code int, ResourceList mapi.ResourceList)

Types

type CA

type CA struct {
	CaPem   string `json:"ca_pem"`
	CertPem string `json:"cert_pem"`
	KeyPem  string `json:"key_pem"`
}

type Message

type Message struct {
	Type string      `json:"type"` // node, order
	Data interface{} `json:"data"`
}

type ServerAttr

type ServerAttr struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Jump to

Keyboard shortcuts

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