meta

package
v0.0.0-...-3f388d4 Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaService

type MetaService struct {
	MetaMap *sync.Map
	TTLMap  *sync.Map
}

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 (m *MetaService) GetStringMap(namespace string, name string) (map[string]string, bool)

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)

type TTL

type TTL struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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