server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSpec

type AuthSpec struct {
	Token string `json:"token"`
}

type AuthStatus

type AuthStatus struct {
	Authenticated bool        `json:"authenticated"`
	User          *jwt.Claims `json:"user,omitempty"`
}

type Server

type Server struct {
	Server    *http.Server
	JwtSecret string
	BindAddr  string
	Port      int
	TlsCert   string
	TlsKey    string
}

func (*Server) Initialize

func (s *Server) Initialize() error

func (*Server) Run

func (s *Server) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

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