extension

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 18

Documentation

Overview

Copyright 2023-2024 API Testing Authors.

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 2023 API Testing Authors.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExtensionRunner added in v0.0.16

func CreateExtensionRunner(ext *Extension, c *cobra.Command, remoteServer server.RunnerExtensionServer) (err error)

func CreateMonitor

func CreateMonitor(ext *Extension, c *cobra.Command, remoteServer monitor.MonitorServer) (err error)

func CreateRunner

func CreateRunner(ext *Extension, c *cobra.Command, remoteServer remote.LoaderServer) (err error)

func LoadPProf

func LoadPProf(name string) []byte

func RegisterStopSignal

func RegisterStopSignal(ctx context.Context, callback func(), servers ...StopAble)

Types

type Extension

type Extension struct {
	Port   int
	Socket string
	// contains filtered or unexported fields
}

Extension is the default command option of the extension

func NewExtension

func NewExtension(name, kind string, port int) *Extension

func (*Extension) AddFlags

func (o *Extension) AddFlags(flags *pflag.FlagSet)

func (*Extension) GetFullName

func (o *Extension) GetFullName() string

func (*Extension) GetListenAddress

func (o *Extension) GetListenAddress() (protocol, address string)

type StopAble

type StopAble interface {
	Stop()
}

Jump to

Keyboard shortcuts

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