rest

package
v0.2.3-test Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ROUTE_DEBUG_INFOV1 = "/debug/v1/info"
View Source
const ROUTE_DEBUG_VERSIONV1 = "/debug/v1/info"
View Source
const ROUTE_RELAY_MESSAGESV1 = "/relay/v1/messages/{topic}"
View Source
const ROUTE_RELAY_SUBSCRIPTIONSV1 = "/relay/v1/subscriptions"

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder func(msg *protocol.Envelope)

type DebugService

type DebugService struct {
	// contains filtered or unexported fields
}

func NewDebugService

func NewDebugService(node *node.WakuNode, m *mux.Router) *DebugService

type InfoArgs

type InfoArgs struct {
}

type InfoReply

type InfoReply struct {
	ENRUri          string   `json:"enrUri,omitempty"`
	ListenAddresses []string `json:"listenAddresses,omitempty"`
}

type RelayService

type RelayService struct {
	// contains filtered or unexported fields
}

func NewRelayService

func NewRelayService(node *node.WakuNode, m *mux.Router, cacheCapacity int, log *zap.Logger) *RelayService

func (*RelayService) Start

func (r *RelayService) Start()

func (*RelayService) Stop

func (r *RelayService) Stop()

type VersionResponse

type VersionResponse string

type WakuRest

type WakuRest struct {
	// contains filtered or unexported fields
}

func NewWakuRest

func NewWakuRest(node *node.WakuNode, address string, port int, enableAdmin bool, enablePrivate bool, relayCacheCapacity int, log *zap.Logger) *WakuRest

func (*WakuRest) Start

func (r *WakuRest) Start()

func (*WakuRest) Stop

func (r *WakuRest) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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