teamserver

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitService added in v0.4.1

type InitService struct {
	Log   *zap.Logger
	Graph *ent.Client
	Auth  service.Authenticator
}

InitService provides HTTP handlers for the Init.

func (*InitService) HTTP added in v0.4.1

func (svc *InitService) HTTP(router *http.ServeMux)

HTTP registers http handlers for the Init.

func (InitService) HandleSchemaUpload added in v0.4.1

func (svc InitService) HandleSchemaUpload(w http.ResponseWriter, r *http.Request) error

HandleSchemaUpload is an http.HandlerFunc which parses JSON and creates the ents.

type Service added in v0.3.0

type Service struct {
	Log    *zap.Logger
	Graph  *ent.Client
	Events event.Publisher
	OAuth  *oauth2.Config
	Auth   service.Authenticator
}

Service provides HTTP handlers to compose the CDN, GraphQL, and WWW services.

func (*Service) HTTP added in v0.3.0

func (svc *Service) HTTP(router *http.ServeMux)

HTTP registers http handlers for the Teamserver.

func (*Service) HandleStatus added in v0.3.0

func (svc *Service) HandleStatus(w http.ResponseWriter, r *http.Request) error

HandleStatus returns JSON status: OK if the teamserver is running without error.

Jump to

Keyboard shortcuts

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