ingress

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ingress provides functionality for registering services.

The ingress package allows you to register wayback services.

To use the ingress package, import the package and its dependencies, such as register, as shown in the following example:

package main

import (
        "github.com/wabarc/wayback/ingress"
        "github.com/wabarc/wayback/publish"
        "github.com/wabarc/wayback/service"
        _ "github.com/wabarc/wayback/ingress/register"
)

func main() {
        // Initialize the publish service with configuration options and a context.
        opts := &config.Options{}
        ctx := context.Background()
        pub := publish.New(ctx, opts)
        go pub.Start()
        defer pub.Stop()

        ingress.Init(opts)

        // Use the publish service to publish data.
        // ...

        // Initialize services with configuration options and a context.
        err := service.Serve(ctx, service.Options{})
        // ...
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *http.Client

Client returns http.Client

func Dialer

func Dialer() proxy.Dialer

Dialer returns proxy.Dailer

func Init

func Init(opts *config.Options)

Init initializes functions with the given configuration options.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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