gateway

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 6 Imported by: 0

README

Gateway

A plugable Discord gateway implementation designed to be flexible enough for use in small hobby projects and large distributed systems.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalDispatcher

func NewLocalDispatcher(receiver receiver.Receiver, opts ...dispatcher.DispatcherOption) dispatcher.Dispatcher

func NewLocalReceiver

func NewLocalReceiver(opts ...receiver.ReceiverOption) receiver.Receiver

func NewNATSDispatcher

func NewNATSDispatcher(url string, natsOpts []nats.Option, opts ...dispatcher.DispatcherOption) (dispatcher.Dispatcher, error)

func NewNATSReceiver

func NewNATSReceiver(url string, natsOptions []nats.Option, opts ...receiver.ReceiverOption) (receiver.Receiver, error)

func NewNOOPDispatcher

func NewNOOPDispatcher(opts ...dispatcher.DispatcherOption) dispatcher.Dispatcher

func NewRedisDispatcher

func NewRedisDispatcher(connectOpts *redis.Options, opts ...dispatcher.DispatcherOption) (dispatcher.Dispatcher, error)

func NewRedisReceiver

func NewRedisReceiver(connectOpts *redis.Options, opts ...receiver.ReceiverOption) (receiver.Receiver, error)

func NewShard

func NewShard(token string, opts ...shard.ShardOption) *shard.Shard

func NewShardManager

func NewShardManager(token string, opts ...manager.ManagerOption) *manager.ShardCluster

Types

This section is empty.

Directories

Path Synopsis
Code generated by events generator, DO NOT EDIT.
Code generated by events generator, DO NOT EDIT.

Jump to

Keyboard shortcuts

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