Documentation ¶
Overview ¶
******************************************************************************
- Copyright 2018 Dell Inc. *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
******************************************************************************
- Copyright 2018 Dell Inc. *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
******************************************************************************
- Copyright 2018
- Dell Inc.
- Cavium *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
Index ¶
- Variables
- func Decrypt(cryptoText string) (text string, err error)
- func Destruct()
- func Encrypt(text string) (cryptoText string, err error)
- func Init() bool
- func Retry(useProfile string, timeout int, wait *sync.WaitGroup, ch chan error)
- func StartHTTPServer(errChan chan error)
- type ConfigurationStruct
- type MemDB
- func (mc *MemDB) AddRegistration(reg contract.Registration) (string, error)
- func (m *MemDB) CloseSession()
- func (m *MemDB) Connect() error
- func (mc *MemDB) DeleteRegistrationById(id string) error
- func (mc *MemDB) DeleteRegistrationByName(name string) error
- func (mc *MemDB) RegistrationById(id string) (contract.Registration, error)
- func (mc *MemDB) RegistrationByName(name string) (contract.Registration, error)
- func (mc *MemDB) Registrations() ([]contract.Registration, error)
- func (mc *MemDB) ScrubAllRegistrations() error
- func (mc *MemDB) UpdateRegistration(reg contract.Registration) error
- type WritableInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggingClient logger.LoggingClient
Functions ¶
func StartHTTPServer ¶
func StartHTTPServer(errChan chan error)
Types ¶
type ConfigurationStruct ¶
type ConfigurationStruct struct { Writable WritableInfo Clients map[string]config.ClientInfo Databases map[string]config.DatabaseInfo Logging config.LoggingInfo Service config.ServiceInfo }
var Configuration *ConfigurationStruct
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
func (*MemDB) AddRegistration ¶
func (mc *MemDB) AddRegistration(reg contract.Registration) (string, error)
func (*MemDB) CloseSession ¶
func (m *MemDB) CloseSession()
func (*MemDB) DeleteRegistrationById ¶
func (*MemDB) DeleteRegistrationByName ¶
func (*MemDB) RegistrationById ¶
func (mc *MemDB) RegistrationById(id string) (contract.Registration, error)
func (*MemDB) RegistrationByName ¶
func (mc *MemDB) RegistrationByName(name string) (contract.Registration, error)
func (*MemDB) Registrations ¶
func (mc *MemDB) Registrations() ([]contract.Registration, error)
func (*MemDB) ScrubAllRegistrations ¶
func (*MemDB) UpdateRegistration ¶
func (mc *MemDB) UpdateRegistration(reg contract.Registration) error
type WritableInfo ¶
type WritableInfo struct {
LogLevel string
}
Click to show internal directories.
Click to hide internal directories.