client

package
v0.0.0-...-abd9a1d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func (*Client) JoinGroup

func (s *Client) JoinGroup(_ context.Context, args JoinGroupArgs, reply *Reply) error

func (*Client) LeaveAllGroup

func (s *Client) LeaveAllGroup(_ context.Context, args LeaveAllGroupArgs, reply *Reply) error

func (*Client) LeaveGroup

func (s *Client) LeaveGroup(_ context.Context, args LeaveGroupArgs, reply *Reply) error

type JoinGroupArgs

type JoinGroupArgs struct {
	ClientID string `json:"client_id"`
	Group    string `json:"group"`
}

type LeaveAllGroupArgs

type LeaveAllGroupArgs struct {
	ClientID string `json:"client_id"`
}

type LeaveGroupArgs

type LeaveGroupArgs JoinGroupArgs

type Reply

type Reply struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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