contactsendpoint

package
v0.0.0-...-2992608 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactsSaveContactsHandler

type ContactsSaveContactsHandler struct {
	Dependencies *module.Dependencies
	// contains filtered or unexported fields
}

ContactsSaveContactsHandler is the handler for "/contacts/:userUUID/contacts"

func NewContactsSaveContactsHandler

func NewContactsSaveContactsHandler(deps *module.Dependencies) *ContactsSaveContactsHandler

NewContactsSaveContactsHandler creates a handler

func (*ContactsSaveContactsHandler) HandleRequest

HandleRequest handles "/contacts/:userUUID/contacts".

func (*ContactsSaveContactsHandler) Register

Register adds the http handler to the gateway's http router

type Endpoint

type Endpoint interface {
	Register(*zanzibar.Gateway) error
}

Endpoint registers a request handler on a gateway

func NewEndpoint

func NewEndpoint(deps *module.Dependencies) Endpoint

NewEndpoint returns a collection of endpoints that can be registered on a gateway

type EndpointHandlers

type EndpointHandlers struct {
	ContactsSaveContactsHandler *ContactsSaveContactsHandler
}

EndpointHandlers is a collection of individual endpoint handlers

func (*EndpointHandlers) Register

func (handlers *EndpointHandlers) Register(gateway *zanzibar.Gateway) error

Register registers the endpoint handlers with the gateway

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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