comm

package
v0.0.0-...-82d3620 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comm

type Comm interface {
	CheckUser(userID uuid.UUID, token string) (bool, error)
}

Comm provides the interface adopted by Handler, allowing for mocking

type Handler

type Handler struct {
	Services map[string]string
}

Handler maintains the list of services and their associated hostnames

func Init

func Init(config *util.Config) *Handler

Init sets up the Handler object with a list of services from the config

func (*Handler) CheckUser

func (comm *Handler) CheckUser(userID uuid.UUID, token string) (bool, error)

CheckUser makes a request to the target service to check if a user ID exists

Jump to

Keyboard shortcuts

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