cmd

package
v0.0.0-...-5013578 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 Jackson Xie xzxiong@yeah.net

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 © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const (
	MinVersion         = defines.MORPCMinVersion
	GOMaxProcsVersion  = defines.MORPCVersion3
	GOMEMLimitVersion  = defines.MORPCVersion3
	GOGCPercentVersion = defines.MORPCVersion4
	// MetadataCache Version
	MetadataCacheVersion = defines.MORPCVersion4
)

Variables

View Source
var GOGCPercentCmd = &cobra.Command{
	Use:   "GOGCPercent",
	Short: "helps to call MO QueryService/GOGCPercent api",
	Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
	Run: func(cmd *cobra.Command, args []string) {
		goGCPercent()
	},
}

GOGCPercentCmd represents the GOGCPercent command

View Source
var GOMEMLimitCmd = &cobra.Command{
	Use:   "GOMEMLimit",
	Short: "helps to call MO QueryService/GOMEMLimit api",
	Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
	Run: func(cmd *cobra.Command, args []string) {
		goMemLimit()
	},
}

GOMEMLimitCmd represents the GOMEMLimit command

View Source
var GOMaxProcsCmd = &cobra.Command{
	Use:   "GOMaxProcs",
	Short: "helps to call MO QueryService/GOMaxProcs api",
	Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
	Run: func(cmd *cobra.Command, args []string) {
		goMaxProcs()
	},
}

GOMaxProcsCmd represents the GOMaxProcs command

View Source
var MetaCacheCmd = &cobra.Command{
	Use:   "MetaCache",
	Short: "helps to call MO QueryService/MetaCache api",
	Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
	Run: func(cmd *cobra.Command, args []string) {
		metaCache()
	},
}

MetaCacheCmd represents the MetaCache command

Functions

func CheckQueryServiceVersion

func CheckQueryServiceVersion(ctx context.Context, logger *zap.Logger, client qclient.QueryClient, minVersion int64) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type GOGCPercentConfig

type GOGCPercentConfig struct {
	Percent *int32
}

type GOMEMLimitConfig

type GOMEMLimitConfig struct {
	Bytes *int64
}

type GoMaxProcsCmdConfig

type GoMaxProcsCmdConfig struct {
	Value *int32
}

type MetaCacheConfig

type MetaCacheConfig struct {
	Bytes *int64
}

type QueryServiceConfig

type QueryServiceConfig struct {
	Port    *int
	Host    *string
	Timeout *time.Duration
}

func (QueryServiceConfig) GetAddress

func (c QueryServiceConfig) GetAddress() string

Jump to

Keyboard shortcuts

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