publicroomsapi

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicRoomsQueryAPI

type PublicRoomsQueryAPI interface {
	QueryPublicRooms(
		ctx context.Context,
		request *QueryPublicRoomsRequest,
		response *QueryPublicRoomsResponse,
	) error
}

type PublicRoomsRpcRequest

type PublicRoomsRpcRequest struct {
	QueryPublicRooms *QueryPublicRoomsRequest `json:"qry_public_rooms,omitempty"`
	Reply            string
}

type QueryPublicRoomsRequest

type QueryPublicRoomsRequest struct {
	// Offset int64  `json:"offset"`
	Limit  int64  `json:"limit"`
	Since  string `json:"since"`
	Filter string `json:"filter"`
}

type QueryPublicRoomsResponse

type QueryPublicRoomsResponse struct {
	Chunk     []publicroomstypes.PublicRoom `json:"chunk"`
	NextBatch string                        `json:"next_batch,omitempty"`
	PrevBatch string                        `json:"prev_batch,omitempty"`
	Estimate  int64                         `json:"total_room_count_estimate,omitempty"`
}

Jump to

Keyboard shortcuts

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