fabconnect

package
v0.0.0-...-471bb1c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFabconnectConfig

func WriteFabconnectConfig(filePath string) error

Types

type CreateIdentityRequest

type CreateIdentityRequest struct {
	Name string
	Type string
}

type CreateIdentityResponse

type CreateIdentityResponse struct {
	Name   string
	Secret string
}

func CreateIdentity

func CreateIdentity(fabconnectUrl string, signer string) (*CreateIdentityResponse, error)

type EnrollIdentityRequest

type EnrollIdentityRequest struct {
	Secret string
}

type EnrollIdentityResponse

type EnrollIdentityResponse struct {
	Name    string
	Success string
}

func EnrollIdentity

func EnrollIdentity(fabconnectUrl, signer, secret string) (*EnrollIdentityResponse, error)

type Events

type Events struct {
	WebhooksAllowPrivateIPs bool `yaml:"webhooksAllowPrivateIPs,omitempty"`
	LevelDB                 *LevelDB
}

type FabconnectConfig

type FabconnectConfig struct {
	MaxInFlight     int
	MaxTXWaitTime   int
	SendConcurrency int
	Receipts        *Receipts
	Events          *Events
	HTTP            *HTTP
	RPC             *RPC
}

type HTTP

type HTTP struct {
	Port int
}

type LevelDB

type LevelDB struct {
	Path string
}

type RPC

type RPC struct {
	ConfigPath string
}

type Receipts

type Receipts struct {
	MaxDocs           int
	QueryLimit        int
	RetryInitialDelay int
	RetryTimeout      int
	LevelDB           *LevelDB
}

Jump to

Keyboard shortcuts

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