http

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package http is used to implement RPC over HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	Resolve(string) (string, error)
}

Resolver resolves url to address.

func NewDefaultResolver

func NewDefaultResolver(options ...ResolverOption) Resolver

NewDefaultResolver creates a default resolver.

type ResolverOption added in v0.10.0

type ResolverOption func(cfg *resolverConfig)

func WithIPv4 added in v0.10.0

func WithIPv4() ResolverOption

WithIPv4 configures the resolver to resolve ipv4 address only.

func WithIPv6 added in v0.10.0

func WithIPv6() ResolverOption

WithIPv6 configures the resolver to resolve ipv6 address only.

Jump to

Keyboard shortcuts

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