options

package
v0.0.0-...-0edac8c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package options contains shared properties/helpers to be consumed by other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	AppID         *string     `yaml:"appid" json:"app_id,omitempty"`
	AuthMechanism *string     `yaml:"provider" json:"provider,omitempty"`
	Credential    *Credential `yaml:"credential,omitempty" json:"credential,omitempty"`
}

ClientOptions to connect to Realm

func (*ClientOptions) Validate

func (c *ClientOptions) Validate() error

Validate validates the client options. This method will return the first error found.

type Credential

type Credential struct {
	Username *string `json:"username,omitempty" yaml:"username,omitempty"`
	Password *string `json:"password,omitempty" yaml:"password,omitempty"`
	Key      *string `json:"key,omitempty" yaml:"key,omitempty"`
	Token    *string `json:"token,omitempty" yaml:"token,omitempty"`
}

Credential are provider-agnostic, fill only needed or omit if using anonymous authentication

Jump to

Keyboard shortcuts

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