store

package
v0.0.0-...-9fe6307 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreService

type StoreService struct {
	BCOSClient bcos.BCOSChain
	Logger     *log.Logger
}

StoreService defines the store service

func MakeStoreService

func MakeStoreService(config *viper.Viper) StoreService

MakeStoreService builds a StoreService instance from the given config

func NewStoreService

func NewStoreService(bcosClient bcos.BCOSChain, logger *log.Logger) StoreService

NewStoreService constructs a new StoreService instance

func (StoreService) Callback

func (s StoreService) Callback(reqCtxID, reqID, input string) (output string, result string)

Callback implements the iservice.RespondCallback interface

func (StoreService) Store

func (s StoreService) Store(
	value string,
) (string, error)

Store stores the given data to BCOS store contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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