authorizer

package module
v0.0.0-...-6387f0a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 16 Imported by: 0

README

authorizer

Authorizer service.

Documentation

Index

Constants

View Source
const (
	REALM            = "Service Proxy"
	TOPIC_AUTHORIZER = "Authorizer"
	SUB_REQUESTS     = "Requests"
	ATTR_RESPONSE    = "response"
)

Variables

This section is empty.

Functions

func Agent

func Agent(w http.ResponseWriter, r *http.Request)

func Agents

func Agents(w http.ResponseWriter, r *http.Request)

func Client

func Client(w http.ResponseWriter, r *http.Request)

Clients hand REST calls to the "/clients/{ID}" URI.

func Clients

func Clients(w http.ResponseWriter, r *http.Request)

Clients hand REST calls to the "/clients" URI.

func Error500f

func Error500f(w http.ResponseWriter, format string, a ...interface{})

func Errorf

func Errorf(w http.ResponseWriter, code int, format string, a ...interface{})

func Fatalf

func Fatalf(format string, a ...interface{})

func ServiceProxy

func ServiceProxy(w http.ResponseWriter, r *http.Request)

Types

type ClientConnectResult

type ClientConnectResult struct {
	URL string `json:"url"`
	ID  string `json:"id"`
}

type Event

type Event struct {
	When  time.Duration
	Label string
}

type ID

type ID []byte

func NewID

func NewID() (ID, error)

func ParseID

func ParseID(str string) (ID, error)

func (ID) String

func (id ID) String() string

func (ID) Subscription

func (id ID) Subscription() string

func (ID) Topic

func (id ID) Topic() string

type Message

type Message struct {
	From string `json:"from"`
	To   string `json:"to"`
	Data string `json:"data"`
}

func (*Message) Bytes

func (m *Message) Bytes() ([]byte, error)

func (*Message) SetBytes

func (m *Message) SetBytes(data []byte)

type ServerConnectResult

type ServerConnectResult struct {
	URL string `json:"url"`
}

type Trace

type Trace struct {
	Start  time.Time
	Last   time.Time
	Events []Event
}

func NewTrace

func NewTrace() *Trace

func (*Trace) End

func (t *Trace) End(w io.Writer)

func (*Trace) Event

func (t *Trace) Event(label string)

Directories

Path Synopsis
apps
cmd
secsh
utils module

Jump to

Keyboard shortcuts

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