agency

package
v0.24.17 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 41 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:            "ca-api",
		ServiceName2:           "a2a",
		HostAddr:               "localhost",
		HostScheme:             "http",
		HostPort:               8080,
		ServerPort:             8080,
		ExportPath:             "",
		EnclavePath:            "",
		StewardDid:             "",
		HandshakeRegister:      "findy.json",
		PsmDb:                  "findy.bolt",
		ResetData:              false,
		URL:                    "",
		VersionInfo:            "",
		Salt:                   "",
		APNSP12CertFile:        "",
		AllowRPC:               true,
		GRPCTls:                true,
		GRPCPort:               50051,
		TlsCertPath:            "",
		JWTSecret:              "",
		EnclaveKey:             "",
		EnclaveBackupName:      "",
		EnclaveBackupTime:      "",
		RegisterBackupName:     "",
		RegisterBackupInterval: 0,
		WalletBackupPath:       "",
		WalletBackupTime:       "",
		GRPCAdmin:              "findy-root",
	}
)

Functions

func ParseLoggingArgs

func ParseLoggingArgs(s string)

func StartAgency

func StartAgency(serverCmd *Cmd) (err error)

func StartGrpcServer

func StartGrpcServer(useTls bool, port int, tlsCertPath, jwtSecret string)

Types

type Cmd

type Cmd struct {
	PoolProtocol      uint64
	PoolName          string
	WalletName        string
	WalletPwd         string
	StewardSeed       string
	ServiceName       string
	ServiceName2      string
	HostAddr          string
	HostScheme        string
	HostPort          uint
	ServerPort        uint
	ExportPath        string
	EnclavePath       string
	StewardDid        string
	HandshakeRegister string
	PsmDb             string
	ResetData         bool
	URL               string
	VersionInfo       string
	Salt              string
	APNSP12CertFile   string
	AllowRPC          bool
	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
}

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

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

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

func (LoggingCmd) Validate

func (c LoggingCmd) Validate() 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

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