server

package
v0.0.0-...-ecf8ec7 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAsToken

func WithAsToken(token string) func(s *Server)

func WithDebugMode

func WithDebugMode(s *Server)

func WithHsToken

func WithHsToken(token string) func(s *Server)

func WithLogger

func WithLogger(logger *logrus.Logger) func(s *Server)

func WithMatrixUrl

func WithMatrixUrl(url *url.URL) func(s *Server)

Types

type MatrixSettings

type MatrixSettings struct {
	RoomAlias string
}

type OptFunction

type OptFunction func(*Server)

type RoomAliasRequest

type RoomAliasRequest struct {
	RoomAlias string `uri:"roomAlias"`
}

type Server

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

func New

func New(addr string, opts ...OptFunction) (*Server, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

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