http

package
v1.113.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(params RegisterParams) error

Register for HTTP.

Types

type Error

type Error struct {
	Message string `json:"message,omitempty"`
}

Error for HTTP.

type GenerateIdentifiersErrorer

type GenerateIdentifiersErrorer struct{}

GenerateIdentifiersErrorer for HTTP.

func (*GenerateIdentifiersErrorer) Error

func (*GenerateIdentifiersErrorer) Status

func (*GenerateIdentifiersErrorer) Status(err error) int

type GenerateIdentifiersRequest

type GenerateIdentifiersRequest struct {
	Application string `json:"application,omitempty"`
	Count       uint64 `json:"count,omitempty"`
}

GenerateIdentifiersRequest for a specific application.

type GenerateIdentifiersResponse

type GenerateIdentifiersResponse struct {
	Meta  map[string]string `json:"meta,omitempty"`
	Error *Error            `json:"error,omitempty"`
	IDs   []string          `json:"ids,omitempty"`
}

GenerateIdentifiersResponse for a specific application.

type MapIdentifiersErrorer

type MapIdentifiersErrorer struct{}

GenerateIdentifiersErrorer for HTTP.

func (*MapIdentifiersErrorer) Error

func (*MapIdentifiersErrorer) Status

func (*MapIdentifiersErrorer) Status(err error) int

type MapIdentifiersRequest

type MapIdentifiersRequest struct {
	IDs []string `json:"ids,omitempty"`
}

MapIdentifiersRequest for some identifiers.

type MapIdentifiersResponse

type MapIdentifiersResponse struct {
	Meta  map[string]string `json:"meta,omitempty"`
	Error *Error            `json:"error,omitempty"`
	IDs   []string          `json:"ids,omitempty"`
}

MapIdentifiersResponse for some identifiers.

type RegisterParams

type RegisterParams struct {
	fx.In

	Marshaller *marshaller.Map
	Mux        nh.ServeMux
	Service    *service.Service
}

RegisterParams for HTTP.

type Server

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

Server for HTTP.

func (*Server) GenerateIdentifiers

func (s *Server) GenerateIdentifiers(ctx context.Context, req *GenerateIdentifiersRequest) (*GenerateIdentifiersResponse, error)

GenerateIdentifiers for HTTP.

func (*Server) MapIdentifiers

func (s *Server) MapIdentifiers(ctx context.Context, req *MapIdentifiersRequest) (*MapIdentifiersResponse, error)

MapIdentifiers for HTTP.

Jump to

Keyboard shortcuts

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