wakuext

package
v0.171.36 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicAPI

type PublicAPI struct {
	*ext.PublicAPI
	// contains filtered or unexported fields
}

PublicAPI extends waku public API.

func NewPublicAPI

func NewPublicAPI(s *Service) *PublicAPI

NewPublicAPI returns instance of the public API.

func (*PublicAPI) RequestMessages

func (api *PublicAPI) RequestMessages(_ context.Context, r ext.MessagesRequest) (types.HexBytes, error)

RequestMessages sends a request for historic messages to a MailServer.

type Service

type Service struct {
	*ext.Service
	// contains filtered or unexported fields
}

func New

func New(config params.NodeConfig, n types.Node, rpcClient *rpc.Client, handler ext.EnvelopeEventsHandler, ldb *leveldb.DB) *Service

func (*Service) APIs

func (s *Service) APIs() []gethrpc.API

APIs returns a list of new APIs.

func (*Service) PublicWakuAPI

func (s *Service) PublicWakuAPI() types.PublicWakuAPI

Jump to

Keyboard shortcuts

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