inet256http

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: GPL-3.0, MPL-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDialer

func WithDialer(d net.Dialer) func(c *Client)

Types

type Client

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

func NewClient

func NewClient(endpoint string, opts ...ClientOption) (*Client, error)

func (*Client) Drop

func (c *Client) Drop(ctx context.Context, privKey inet256.PrivateKey) error

func (*Client) Open

func (c *Client) Open(ctx context.Context, privKey inet256.PrivateKey, opts ...inet256.NodeOption) (inet256.Node, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

type ClientOption

type ClientOption = func(*Client)

type DropReq

type DropReq struct {
	PrivateKey []byte `json:"private_key"`
}

type OpenReq

type OpenReq struct {
	PrivateKey []byte `json:"private_key"`
}

type Server

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

func NewServer

func NewServer(x inet256.Service) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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