uds

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package uds

UDS本机通信基于UNIX Domain Socket的通信服务端,与Apollo-cli一同使用

Package uds

Package uds

Index

Constants

View Source
const (
	ErrNoResponse  = "no response"
	ErrCmdNotFound = "cmd not found"
)
View Source
const MaxReadSize = 4096
View Source
const (
	SUCCESS = "success"
)
View Source
const (
	UdsName = "Apollo"
)

Variables

This section is empty.

Functions

func Listen added in v1.1.3

func Listen()

func Register

func Register()

Register 注册一个Unix domain socket通信

func UDSResponse

func UDSResponse(u UDSRes) []byte

UDSResponse UDS响应 数据可信 传入的结构体一定可以格式化

Types

type UDSRes

type UDSRes struct {
	Error string `json:"error"`
	Data  string `json:"data"`
}

Jump to

Keyboard shortcuts

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