rtns

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package rtns provides utilities for handling the publishing of IPNS records

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	PK ci.PrivKey
}

Opts is used to configure our connection

type Publisher

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

Publisher provides a helper to publish IPNS records

func NewPublisher

func NewPublisher(pk ci.PrivKey, permanent bool, swarmAddrs ...string) (*Publisher, error)

NewPublisher is used to generate our IPNS publisher

func (*Publisher) PublishWithEOL

func (p *Publisher) PublishWithEOL(ctx context.Context, pk ci.PrivKey, content string, eol time.Time) error

PublishWithEOL is used to publish an IPNS record with non default lifetime values

Jump to

Keyboard shortcuts

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