node

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Addr   string
	Engine *gin.Engine
	// contains filtered or unexported fields
}

func (*Node) Init

func (n *Node) Init(ctx context.Context, configFilename string)

func (*Node) Notify

func (n *Node) Notify(ctx context.Context) error

func (*Node) NotifyOne

func (n *Node) NotifyOne(ctx context.Context, r types.TransferRecord) (success bool, err error)

func (*Node) UpdateNotify

func (n *Node) UpdateNotify(ctx context.Context, r types.TransferRecord) error

Jump to

Keyboard shortcuts

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