channels

package
v0.0.0-...-bc28a72 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

It provides some functions to start the channels parts The first option is you configure and start the engine and we bind the http routes The second we you configure the default parts and we start the engine and bind routes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func Start

func Start(host string, port string, router *gin.Engine)

Start channel server, make sure you configured the Engine first

Types

type Config

type Config struct {
	JWTSecret string `yaml:"jwt"`
	Server    struct {
		Host string `yaml:"host"`
		Port string `yaml:"port"`
	} `yaml:"server"`
	Database struct {
		User     string `yaml:"user"`
		Password string `yaml:"password"`
		DB       string `yaml:"db"`
		Host     string `yaml:"host"`
		Port     string `yaml:"port"`
	} `yaml:"database"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

Directories

Path Synopsis
Provides the structs and function to verify and extract a token and check if the token can use the resources he wants
Provides the structs and function to verify and extract a token and check if the token can use the resources he wants
This package holds the implementations for the project cache interface
This package holds the implementations for the project cache interface
This package holds the connection interface implementations to be used by project
This package holds the connection interface implementations to be used by project
This package hold all the delivery logic, connection tracking and pub sub
This package hold all the delivery logic, connection tracking and pub sub
This package provides some extra http handlers
This package provides some extra http handlers
This package holds the presence interface implementations This package holds the presence interface implementations
This package holds the presence interface implementations This package holds the presence interface implementations
This package holds the publisher interface implementations
This package holds the publisher interface implementations
pgxsql
This package holds the PGX driver implementation of the storage interface
This package holds the PGX driver implementation of the storage interface
storagesql
This package holds a default implementation of the storage interface
This package holds a default implementation of the storage interface

Jump to

Keyboard shortcuts

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