net

package
v0.0.0-...-0e092d5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeMessage

type ChallengeMessage struct {
	Algorithm  string
	Challenge  string
	Difficulty int
}

type Client

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

func NewClient

func NewClient(serverAddr string) *Client

func (*Client) Start

func (client *Client) Start()

type ErrorMessage

type ErrorMessage struct {
	Text string
}

type GrantMessage

type GrantMessage struct {
	Text string
}

type Server

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

func NewServer

func NewServer(serverAddr string) *Server

func (*Server) Start

func (server *Server) Start()

type SolutionMessage

type SolutionMessage struct {
	Algorithm     string
	Challenge     string
	SolutionNonce int
}

Jump to

Keyboard shortcuts

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