rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Port is the port where the server will listen
	Port int

	// JwtHeaderName is the name of the header where the JWT is stored
	JwtHeaderName string

	// JwtValidationURL is the URL which returns user id based on the JWT
	JwtValidationURL string

	// BoardValidationURL is the URL which returns the board based on the board id
	BoardValidationURL string

	// UsersStorageType is the type of the storage that will be used
	UsersStorageType string

	// RoomsStorageType is the type of the storage that will be used
	RoomsStorageType string

	Logger *zap.Logger
}

type Rest

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

func NewRest

func NewRest(config *Config) *Rest

func (*Rest) Start

func (rest *Rest) Start()

func (*Rest) Stop

func (rest *Rest) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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