config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountPrivateKey

type AccountPrivateKey struct {
	PrivateKey crypto.PrivateKey
	SigAlgo    crypto.SignatureAlgorithm
	HashAlgo   crypto.HashAlgorithm
}

type Config

type Config struct {
	// The address where the emulator is running.
	EmulatorAddr string

	// The service account key information.
	ServiceAccountKey AccountPrivateKey
}

Config defines configuration for the Language Server. These options are determined by the client and passed to the server at initialization.

func FromInitializationOptions

func FromInitializationOptions(opts interface{}) (conf Config, err error)

FromInitializationOptions creates a new config instance from the initialization options field passed from the client at startup.

Returns an error if any fields are missing or malformed.

Jump to

Keyboard shortcuts

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