endpoint

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server represent an auth callback endpoint

func New

func New() (*Server, error)

New creates an auth callback endpoint

func (Server) AuthCode

func (h Server) AuthCode() string

AuthCode returns auth codde

func (*Server) Close

func (s *Server) Close()

Close closes endpoint

func (Server) ServeHTTP

func (h Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)

ServeHTTP handler endpoint requests

func (*Server) Start

func (s *Server) Start()

Start starts a endpoint

func (*Server) Wait

func (s *Server) Wait() error

Wait waits

Jump to

Keyboard shortcuts

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