Documentation ¶
Overview ¶
-------------------------------------------------------------------------
* * meta_service.go * local service for polardb pg instance meta info * * * Copyright (c) 2021, Alibaba Group Holding Limited * 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. * * IDENTIFICATION * common/polardb_pg/meta/meta_service.go *-------------------------------------------------------------------------
Index ¶
- type MetaService
- func (m *MetaService) GetFloat(namespace string, name string) (float64, bool)
- func (m *MetaService) GetInteger(namespace string, name string) (int64, bool)
- func (m *MetaService) GetInterface(namespace string, name string) (interface{}, bool)
- func (m *MetaService) GetInterfaceMap(namespace string, name string) (map[string]interface{}, bool)
- func (m *MetaService) GetSingleMap(namespace string, name string) map[string]interface{}
- func (m *MetaService) GetSingleString(namespace string, name string) string
- func (m *MetaService) GetString(namespace string, name string) (string, bool)
- func (m *MetaService) GetStringMap(namespace string, name string) (map[string]string, bool)
- func (m *MetaService) SetFloat(namespace string, name string, value float64)
- func (m *MetaService) SetInteger(namespace string, name string, value int64)
- func (m *MetaService) SetInterface(namespace string, name string, value interface{})
- func (m *MetaService) SetInterfaceMap(namespace string, name string, value map[string]interface{})
- func (m *MetaService) SetInterfaceTTL(namespace string, name string, value interface{}, ttl int64)
- func (m *MetaService) SetString(namespace string, name string, value string)
- func (m *MetaService) SetStringMap(namespace string, name string, value map[string]string)
- type TTL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaService ¶
func GetMetaService ¶
func GetMetaService() *MetaService
func (*MetaService) GetFloat ¶
func (m *MetaService) GetFloat(namespace string, name string) (float64, bool)
func (*MetaService) GetInteger ¶
func (m *MetaService) GetInteger(namespace string, name string) (int64, bool)
func (*MetaService) GetInterface ¶
func (m *MetaService) GetInterface(namespace string, name string) (interface{}, bool)
func (*MetaService) GetInterfaceMap ¶
func (m *MetaService) GetInterfaceMap(namespace string, name string) (map[string]interface{}, bool)
func (*MetaService) GetSingleMap ¶
func (m *MetaService) GetSingleMap(namespace string, name string) map[string]interface{}
func (*MetaService) GetSingleString ¶
func (m *MetaService) GetSingleString(namespace string, name string) string
func (*MetaService) GetString ¶
func (m *MetaService) GetString(namespace string, name string) (string, bool)
func (*MetaService) GetStringMap ¶
func (*MetaService) SetFloat ¶
func (m *MetaService) SetFloat(namespace string, name string, value float64)
func (*MetaService) SetInteger ¶
func (m *MetaService) SetInteger(namespace string, name string, value int64)
func (*MetaService) SetInterface ¶
func (m *MetaService) SetInterface(namespace string, name string, value interface{})
func (*MetaService) SetInterfaceMap ¶
func (m *MetaService) SetInterfaceMap(namespace string, name string, value map[string]interface{})
func (*MetaService) SetInterfaceTTL ¶
func (m *MetaService) SetInterfaceTTL(namespace string, name string, value interface{}, ttl int64)
func (*MetaService) SetString ¶
func (m *MetaService) SetString(namespace string, name string, value string)
func (*MetaService) SetStringMap ¶
func (m *MetaService) SetStringMap(namespace string, name string, value map[string]string)
Click to show internal directories.
Click to hide internal directories.