Categorygithub.com/gopackage/ddp
modulepackage
0.0.6
Repository: https://github.com/gopackage/ddp.git
Documentation: pkg.go.dev

# README

DDP in Go

Meteor DDP library for Go. This library allows Go applications to connect to Meteor applications, subscribe to Meteor publications, read from a cached Collection (similar to minimongo), and call Meteor methods on the server.

See ddp/_examples for some tips and an example app that walks through all the features of the library.

# Functions

IgnoreErr logs an error if it occurs and ignores it.
NewClient creates a client with NewClientWithLogger and the default apex logger.
NewClientWithLogger creates a default client (using an internal websocket) to the provided URL using the origin for the connection.
NewCollection creates a new collection - always KeyCache.
NewConnect creates a new connect message.
No description provided by the author
NewKeyManager creates a new instance and sets up resources.
No description provided by the author
NewMethod creates a new method invocation object.
NewMockCollection creates an empty collection that does nothing.
No description provided by the author
NewPing creates a new ping message with optional ID.
NewPong creates a new pong message with optional ID.
NewReaderStats creates a ReaderStats object for the provided Reader.
NewReconnect creates a new connect message with a session ID to resume.
NewStatsTracker create a new tracker with start time set to now.
NewSub creates a new sub object.
No description provided by the author
NewWriterStats creates a WriterStats object for the provided Writer.
UnixMilli creates a new Time from the given unix millis but in UTC (as opposed to time.UnixMilli which returns time in the local time zone).

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Call represents an active RPC call.
Client represents a DDP client connection.
ClientStats displays combined statistics for the Client.
CollectionStats combines statistics about a collection.
Connect represents a DDP connect message.
KeyCache caches items keyed on unique ID.
KeyManager provides simple incrementing IDs for ddp messages.
Login provides a Meteor.Accounts password login support.
No description provided by the author
Message contains the common fields that all DDP messages use.
Method is used to send a remote procedure call to the server.
MockCache implements the Collection interface but does nothing with the data.
OrderedCache caches items based on list order.
No description provided by the author
PingTracker tracks in-flight pings.
ReaderStats tracks statistics on any io.Reader.
Stats tracks statistics for i/o operations.
StatsTracker provides the basic tooling for tracking i/o stats.
Sub is used to send a subscription request to the server.
Time is an alias for time.Time with custom json marshalling implementations to support ejson.
No description provided by the author
WriterStats tracks statistics on any io.Writer.

# Interfaces

Collection managed cached collection data sent from the server in a livedata subscription.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Ping represents a DDP ping message.
Pong represents a DDP pong message.
No description provided by the author