bcadapter

package
v0.0.0-...-3311072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendImpl

type BackendImpl struct {
	Config *Config
}

BackendImpl ...

func NewBCAdapterBackend

func NewBCAdapterBackend(c *Config) (*BackendImpl, error)

NewBCAdapterBackend ...

func (*BackendImpl) Pubs

func (bc *BackendImpl) Pubs(bcID string, pubs []*string) ([]*structs.PubResp, error)

Pubs defines publicity data on block chain

func (*BackendImpl) Register

func (bc *BackendImpl) Register(accountID string) (*structs.RegisterResp, error)

Register defines register on block chain

type Config

type Config struct {
	Address string
}

Config defines the config of block chain adapter

type IBCAdapter

type IBCAdapter interface {
	Register(accountID string) (*structs.RegisterResp, error)
	Pubs(bcID string, pubs []*string) ([]*structs.PubResp, error)
}

IBCAdapter defines the interface to request block chain adapter

Directories

Path Synopsis
Package mock_bcadapter is a generated GoMock package.
Package mock_bcadapter is a generated GoMock package.

Jump to

Keyboard shortcuts

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