appnames

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCliFlags

func NewCliFlags() []cli.Flag

NewCliFlags returns cli flags to configure a core client.

Types

type AddrToAppName

type AddrToAppName interface {
	GetAddrToAppName() (map[ethereum.Address]string, error)
}

AddrToAppName define required function of an appname instance

type Client

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

Client is the the real implementation of addr to integration app name interface.

func NewClient

func NewClient(sugar *zap.SugaredLogger, url string) (*Client, error)

NewClient creates a new client to addr to app name interfaces

func NewClientFromContext

func NewClientFromContext(sugar *zap.SugaredLogger, c *cli.Context) (*Client, error)

NewClientFromContext returns new core client from cli flags.

func (*Client) GetAddrToAppName

func (c *Client) GetAddrToAppName() (map[ethereum.Address]string, error)

GetAddrToAppName return a map of ethereum.Address to app name or error if occur

Jump to

Keyboard shortcuts

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