api

package
v0.0.0-...-faadec1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxContentTopicNameSize = 300

	// 1048576 - 300 - 62 = 1048214
	MaxMessageSize = pubsub.DefaultMaxMessageSize - MaxContentTopicNameSize - 62
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	proto.UnimplementedMessageApiServer
	// contains filtered or unexported fields
}

func NewService

func NewService(log *zap.Logger, store *store.Store, natsServer *server.Server, publishToWakuRelay func(context.Context, *wakupb.WakuMessage) error) (s *Service, err error)

func (*Service) BatchQuery

func (*Service) Close

func (s *Service) Close()

func (*Service) HandleIncomingWakuRelayMessage

func (s *Service) HandleIncomingWakuRelayMessage(msg *wakupb.WakuMessage) error

func (*Service) Publish

func (*Service) Query

func (*Service) Subscribe

func (*Service) Subscribe2

func (s *Service) Subscribe2(stream proto.MessageApi_Subscribe2Server) error

func (*Service) SubscribeAll

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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