proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoIDHeartbeatReq = uint32(1)
	ProtoIDHeartbeatRsp = uint32(2)
	ProtoIDEchoReq      = uint32(3)
	ProtoIDEchoRsp      = uint32(4)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoReq

type EchoReq struct {
	Header *HeaderReq `json:"header"`
	Echo   string     `json:"echo,omitempty"`
}

type EchoRsp

type EchoRsp struct {
	Header *HeaderRsp `json:"header"`
	Echo   string     `json:"echo,omitempty"`
}

type HeaderReq

type HeaderReq struct {
	Seq int64 `json:"seq,omitempty"`
	Ts  int64 `json:"ts,omitempty"`
}

type HeaderRsp

type HeaderRsp struct {
	Seq        int64  `json:"seq,omitempty"`
	Ts         int64  `json:"ts,omitempty"`
	ErrCode    uint32 `json:"err_code,omitempty"`
	ErrMessage string `json:"err_message,omitempty"`
}

type HeartbeatReq

type HeartbeatReq struct {
	Header *HeaderReq `json:"header"`
}

type HeartbeatRsp

type HeartbeatRsp struct {
	Header *HeaderRsp `json:"header"`
}

Jump to

Keyboard shortcuts

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