block_chain

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixKey = "__block_chain"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterBroker

type AdapterBroker interface {
	String() string
	Send(chain string, content string, callback string) (string, error)
	Status(chain string, content string, hash string) (string, error)
}

type Broker added in v1.3.26

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

func NewBroker added in v1.3.26

func NewBroker(client *http.Client, mintAddr string) (*Broker, error)

func (*Broker) Close added in v1.3.26

func (m *Broker) Close()

Close 关闭连接

func (*Broker) GetClient added in v1.3.26

func (m *Broker) GetClient() *http.Client

GetClient 暴露原生client

func (*Broker) Send added in v1.3.26

func (m *Broker) Send(chain string, content string, callback string) (string, error)

func (*Broker) Status added in v1.3.26

func (m *Broker) Status(chain string, content string, hash string) (string, error)

func (*Broker) String added in v1.3.26

func (*Broker) String() string

Jump to

Keyboard shortcuts

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