agent

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package agent implements the functions, types, and interfaces for the module.

Package agent implements the functions, types, and interfaces for the module.

Package agent implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const (
	ApiVersionV1   = "/api/v1"
	DefaultPrefix  = "/api"
	DefaultVersion = "v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	HTTPAgent
	GRPCAgent
}

func NewAgent added in v0.1.32

func NewAgent(server *http.Server, grpcServer *grpc.Server) Agent

type GRPCAgent added in v0.1.32

type GRPCAgent interface {
	Server() *grpc.Server
	RegisterService(desc *grpc.ServiceDesc, impl interface{})
}

func NewGRPC added in v0.1.32

func NewGRPC(server *grpc.Server) GRPCAgent

type HTTPAgent added in v0.1.32

type HTTPAgent interface {
	URI() string
	HTTPServer() *http.Server
	Route() *http.Router
}

func NewHTTP added in v0.1.32

func NewHTTP(server *http.Server) HTTPAgent

Directories

Path Synopsis
middleware
security
Package security implements the functions, types, and interfaces for the module.
Package security implements the functions, types, and interfaces for the module.

Jump to

Keyboard shortcuts

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