config

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	*ClientEditableConfig

	Cert []byte
	// contains filtered or unexported fields
}

func (*ClientConfig) Collator

func (c *ClientConfig) Collator() *collate.Collator

func (*ClientConfig) GetCert

func (c *ClientConfig) GetCert() []byte

func (*ClientConfig) GetPassword

func (c *ClientConfig) GetPassword() string

func (*ClientConfig) GetServerHostname

func (c *ClientConfig) GetServerHostname() string

func (*ClientConfig) GetServerPort

func (c *ClientConfig) GetServerPort() int64

func (*ClientConfig) GetServerSelfSigned

func (c *ClientConfig) GetServerSelfSigned() bool

func (*ClientConfig) GetServerSsl

func (c *ClientConfig) GetServerSsl() bool

func (*ClientConfig) GetTimeout

func (c *ClientConfig) GetTimeout() int64

func (*ClientConfig) GetUsername

func (c *ClientConfig) GetUsername() string

func (*ClientConfig) SetCert

func (c *ClientConfig) SetCert(cert []byte) error

type ClientEditableConfig

type ClientEditableConfig struct {
	ServerHostname   string `json:"serverHostname"`
	ServerPort       int64  `json:"serverPort"`
	ServerSsl        bool   `json:"serverSsl"`
	ServerSelfSigned bool   `json:"serverSelfSigned"`
	SortLanguage     string `json:"sortLanguage"`
	Username         string `json:"username"`
	Password         string `json:"password"`
	Timeout          int64  `json:"timeout"`
}

func NewClientEditableConfig

func NewClientEditableConfig(draftClientEditableConfig *ClientEditableConfig) *ClientEditableConfig

Jump to

Keyboard shortcuts

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