registration

package
v0.0.0-...-d4a0fb4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterPeerRequest

type RegisterPeerRequest struct {
	Interface string `json:"interface"`
	PublicKey string `json:"public_key"`
	TTL       int    `json:"ttl"`
}

type RegistrationAPI

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

func NewRegistrationAPI

func NewRegistrationAPI(db *sqlx.DB) *RegistrationAPI

func (*RegistrationAPI) BuildAPI

func (r *RegistrationAPI) BuildAPI(api *httpapi.API)

func (*RegistrationAPI) RegisterNewPeer

func (r *RegistrationAPI) RegisterNewPeer(intfName, publicKey string, ttl time.Duration) (*model.Peer, error)

Source Files

  • iprange.go
  • registration.go

Jump to

Keyboard shortcuts

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