Documentation
¶
Overview ¶
share cluster nodes info
Index ¶
- Constants
- func ReadReply(s network.Stream, msg *ShareReply) error
- func ReadRequest(s network.Stream, msg *ShareRequest) error
- func WriteReply(s network.Stream, msg *ShareReply) error
- func WriteRequst(s network.Stream, msg *ShareRequest) error
- type Client
- type ErrCode
- type InfoType
- type Server
- type ShareReply
- type ShareRequest
Constants ¶
View Source
const (
PROTOCOL_V1 = "/cluster/share/0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
func ReadRequest ¶
func ReadRequest(s network.Stream, msg *ShareRequest) error
func WriteReply ¶
func WriteReply(s network.Stream, msg *ShareReply) error
func WriteRequst ¶
func WriteRequst(s network.Stream, msg *ShareRequest) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewShareClient ¶
func (*Client) ConnectTarget ¶
func (*Client) GetClusterInfo ¶
func (*Client) IsTargetConnected ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewShareServer ¶
type ShareReply ¶
type ShareReply struct {}
func (*ShareReply) MarshalCBOR ¶
func (t *ShareReply) MarshalCBOR(w io.Writer) error
func (*ShareReply) UnmarshalCBOR ¶
func (t *ShareReply) UnmarshalCBOR(r io.Reader) error
type ShareRequest ¶
type ShareRequest struct {}
func (*ShareRequest) MarshalCBOR ¶
func (t *ShareRequest) MarshalCBOR(w io.Writer) error
func (*ShareRequest) UnmarshalCBOR ¶
func (t *ShareRequest) UnmarshalCBOR(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.