store

package
v0.0.0-...-8a61662 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsortiumBucket   = "consortium"
	OrganizationBucket = "organization"
)

Functions

This section is empty.

Types

type Bolt

type Bolt struct {
	DB *bolt.DB
}
var Bt *Bolt

func Init

func Init() *Bolt

func (*Bolt) Add

func (b *Bolt) Add(root string, key string, data map[string]interface{}) error

func (*Bolt) AddJson

func (b *Bolt) AddJson(root string, key string, json []byte) error

func (*Bolt) DelByKey

func (b *Bolt) DelByKey(root string, key string) error

func (*Bolt) View

func (b *Bolt) View(root string) ([]interface{}, error)

func (*Bolt) ViewByKey

func (b *Bolt) ViewByKey(root string, key string) (interface{}, error)

type Consortium

type Consortium struct {
	//OrderName string
	Name     string
	Type     string
	Desc     string
	MspNames []string
}

type MSP

type MSP struct {
	Name string
	Path string
	Type string
	Role string
}

type Organization

type Organization struct {
	Country            string
	Province           string
	Locality           string
	Organization       string
	CommonName         string
	OrganizationalUnit string
	StreetAddress      string
	PostalCode         string
	PEMs               []PEM
	MSPs               []MSP
}

type PEM

type PEM struct {
	Name string
	Key  string
	Cert string
	Type string
}

Jump to

Keyboard shortcuts

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