api

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 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ProxyPublicRoomAPITopic = "proxyPublicRoomApi"

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalMsgConsumer

type InternalMsgConsumer struct {
	apiconsumer.APIConsumer
	// contains filtered or unexported fields
}

func NewInternalMsgConsumer

func NewInternalMsgConsumer(
	cfg config.Dendrite,
	publicRoomsDB model.PublicRoomAPIDatabase,
	rpcCli *common.RpcClient,
) *InternalMsgConsumer

func (*InternalMsgConsumer) Start

func (c *InternalMsgConsumer) Start()

type ReqGetPublicRooms

type ReqGetPublicRooms struct{}

func (ReqGetPublicRooms) FillRequest

func (ReqGetPublicRooms) FillRequest(coder core.Coder, req *http.Request, vars map[string]string) error

func (ReqGetPublicRooms) GetAPIType

func (ReqGetPublicRooms) GetAPIType() int8

func (ReqGetPublicRooms) GetMethod

func (ReqGetPublicRooms) GetMethod() []string

func (ReqGetPublicRooms) GetMetricsName

func (ReqGetPublicRooms) GetMetricsName() string

func (ReqGetPublicRooms) GetMsgType

func (ReqGetPublicRooms) GetMsgType() int32

func (ReqGetPublicRooms) GetPrefix

func (ReqGetPublicRooms) GetPrefix() []string

func (ReqGetPublicRooms) GetRoute

func (ReqGetPublicRooms) GetRoute() string

func (ReqGetPublicRooms) GetTopic

func (ReqGetPublicRooms) GetTopic(cfg *config.Dendrite) string

func (ReqGetPublicRooms) NewRequest

func (ReqGetPublicRooms) NewRequest() core.Coder

func (ReqGetPublicRooms) NewResponse

func (ReqGetPublicRooms) NewResponse(code int) core.Coder

func (ReqGetPublicRooms) Process

func (ReqGetPublicRooms) Process(ctx context.Context, consumer interface{}, msg core.Coder, device *authtypes.Device) (int, core.Coder)

type ReqPostPublicRooms

type ReqPostPublicRooms struct{}

func (ReqPostPublicRooms) FillRequest

func (ReqPostPublicRooms) FillRequest(coder core.Coder, req *http.Request, vars map[string]string) error

func (ReqPostPublicRooms) GetAPIType

func (ReqPostPublicRooms) GetAPIType() int8

func (ReqPostPublicRooms) GetMethod

func (ReqPostPublicRooms) GetMethod() []string

func (ReqPostPublicRooms) GetMetricsName

func (ReqPostPublicRooms) GetMetricsName() string

func (ReqPostPublicRooms) GetMsgType

func (ReqPostPublicRooms) GetMsgType() int32

func (ReqPostPublicRooms) GetPrefix

func (ReqPostPublicRooms) GetPrefix() []string

func (ReqPostPublicRooms) GetRoute

func (ReqPostPublicRooms) GetRoute() string

func (ReqPostPublicRooms) GetTopic

func (ReqPostPublicRooms) GetTopic(cfg *config.Dendrite) string

func (ReqPostPublicRooms) NewRequest

func (ReqPostPublicRooms) NewRequest() core.Coder

func (ReqPostPublicRooms) NewResponse

func (ReqPostPublicRooms) NewResponse(code int) core.Coder

func (ReqPostPublicRooms) Process

func (ReqPostPublicRooms) Process(ctx context.Context, consumer interface{}, msg core.Coder, device *authtypes.Device) (int, core.Coder)

Jump to

Keyboard shortcuts

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