http

package
v0.0.0-...-9d91e49 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayHttpClient

type GatewayHttpClient struct {
	Client *http.HttpClient
}

func (*GatewayHttpClient) CreateHarborProject

func (c *GatewayHttpClient) CreateHarborProject(name string) error

func (*GatewayHttpClient) CreateHarborWebhook

func (c *GatewayHttpClient) CreateHarborWebhook(project string) error

func (*GatewayHttpClient) SendArgoCDWebhook

func (c *GatewayHttpClient) SendArgoCDWebhook(payload []byte, headers map[string]string) error

func (*GatewayHttpClient) Set

func (c *GatewayHttpClient) Set(i interface{})

type GatewayRouter

type GatewayRouter struct {
	Router *mux.Router
}

func NewRouter

func NewRouter() *GatewayRouter

func (*GatewayRouter) RegisterRoute

func (r *GatewayRouter) RegisterRoute(method, path string, f http.HandlerFunc)

func (*GatewayRouter) RegisterRoutePrefix

func (r *GatewayRouter) RegisterRoutePrefix(method, path string, f http.HandlerFunc)

type GatewayServer

type GatewayServer struct {
	Http   *http.Server
	Router *GatewayRouter
}

func New

func New(port int) *GatewayServer

func (*GatewayServer) Run

func (svr *GatewayServer) Run()

func (*GatewayServer) Stop

func (svr *GatewayServer) Stop()

Jump to

Keyboard shortcuts

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