agency

package
v0.31.49 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultValues = Cmd{
		PoolProtocol:           2,
		PoolName:               "findy-pool",
		WalletName:             "",
		WalletPwd:              "",
		StewardSeed:            "000000000000000000000000Steward1",
		ServiceName:            "a2a",
		HostAddr:               "localhost",
		HostScheme:             "http",
		HostPort:               8080,
		ServerPort:             8080,
		ExportPath:             "",
		EnclavePath:            "",
		StewardDid:             "",
		HandshakeRegister:      "findy.json",
		PsmDB:                  "findy.bolt",
		HTTPReqTimeout:         utils.HTTPReqTimeout,
		ResetData:              false,
		URL:                    "",
		VersionInfo:            "",
		GRPCTLS:                true,
		GRPCPort:               50051,
		TLSCertPath:            "",
		JWTSecret:              "",
		EnclaveKey:             "",
		EnclaveBackupName:      "",
		EnclaveBackupTime:      "",
		RegisterBackupName:     "",
		RegisterBackupInterval: 0,
		WalletBackupPath:       "",
		WalletBackupTime:       "",
		GRPCAdmin:              "findy-root",
		WalletPoolSize:         10,
		DIDMethod:              method.TypeSov,
	}
)

Functions

func ParseLoggingArgs

func ParseLoggingArgs(s string)

func StartAgency

func StartAgency(serverCmd *Cmd) (err error)

Types

type Cmd

type Cmd struct {
	PoolProtocol      uint64
	PoolName          string
	WalletName        string
	WalletPwd         string
	StewardSeed       string
	ServiceName       string
	HostAddr          string
	HostScheme        string
	HostPort          uint
	ServerPort        uint
	ExportPath        string
	EnclavePath       string
	StewardDid        string
	HandshakeRegister string
	PsmDB             string
	HTTPReqTimeout    time.Duration
	ResetData         bool
	URL               string
	VersionInfo       string
	GRPCTLS           bool
	GRPCPort          int
	TLSCertPath       string
	JWTSecret         string

	EnclaveKey        string
	EnclaveBackupName string
	EnclaveBackupTime string

	RegisterBackupName     string
	RegisterBackupInterval time.Duration

	WalletBackupPath string
	WalletBackupTime string

	GRPCAdmin      string
	WalletPoolSize int

	DIDMethod method.Type
}

func (*Cmd) Exec

func (c *Cmd) Exec(_ io.Writer) (r cmds.Result, err error)

func (*Cmd) PreRun

func (c *Cmd) PreRun()

func (*Cmd) Run

func (c *Cmd) Run() (err error)

func (*Cmd) SetMustHaveDefaults

func (c *Cmd) SetMustHaveDefaults()

func (*Cmd) Setup

func (c *Cmd) Setup() (err error)

func (*Cmd) Validate

func (c *Cmd) Validate() (err error)

type CountCmd

type CountCmd struct {
	cmds.GrpcCmd
	Level string
}

func (CountCmd) RPCExec added in v0.25.4

func (c CountCmd) RPCExec(w io.Writer) (r cmds.Result, err error)

func (CountCmd) Validate

func (c CountCmd) Validate() (err error)

type LoggingCmd

type LoggingCmd struct {
	cmds.GrpcCmd
	Level string
}

func (LoggingCmd) RPCExec added in v0.25.4

func (c LoggingCmd) RPCExec(w io.Writer) (r cmds.Result, err error)

func (LoggingCmd) Validate

func (c LoggingCmd) Validate() error

type MigrateCmd added in v0.25.24

type MigrateCmd struct {
	EnclaveKey string

	InputReg  string
	OutputReg string
}

func (MigrateCmd) Exec added in v0.25.24

func (c MigrateCmd) Exec(w io.Writer) (r cmds.Result, err error)

func (MigrateCmd) Validate added in v0.25.24

func (c MigrateCmd) Validate() (err error)

type PingCmd

type PingCmd struct {
	cmds.GrpcCmd
	BaseAddr string
}

func (PingCmd) Exec

func (c PingCmd) Exec(w io.Writer) (r cmds.Result, err error)

func (PingCmd) RPCExec added in v0.25.4

func (c PingCmd) RPCExec(w io.Writer) (r cmds.Result, err error)

func (PingCmd) Validate

func (c PingCmd) Validate() error

Jump to

Keyboard shortcuts

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