Help us shape the future of Go! Take the 2026 Go Developer Survey

ma1sd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v1.0.0

type Auth struct {
	MXID      string
	LocalPart string
	Domain    string
	Password  string
}

type MA1SD

type MA1SD struct {
	Domain   string
	Validity time.Duration
	DB       *gorm.DB
	// contains filtered or unexported fields
}

MA1SD exposes endpoints needed by MA1SD to provide authentication and directory for Matrix

func NewMA1SD

func NewMA1SD(domain string, validity time.Duration, db *gorm.DB) *MA1SD

NewMA1SD creates a MA1SD handler

func (*MA1SD) ServeHTTP

func (m *MA1SD) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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