disruption_listener

package
v0.0.0-...-d8f8dd2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisruptionListener_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "disruption_listener.DisruptionListener",
	HandlerType: (*DisruptionListenerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendDisruption",
			Handler:    _DisruptionListener_SendDisruption_Handler,
		},
		{
			MethodName: "DisruptionStatus",
			Handler:    _DisruptionListener_DisruptionStatus_Handler,
		},
		{
			MethodName: "CleanDisruption",
			Handler:    _DisruptionListener_CleanDisruption_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "disruption_listener.proto",
}

DisruptionListener_ServiceDesc is the grpc.ServiceDesc for DisruptionListener service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_disruption_listener_proto protoreflect.FileDescriptor

Functions

func RegisterDisruptionListenerServer

func RegisterDisruptionListenerServer(s grpc.ServiceRegistrar, srv DisruptionListenerServer)

Types

type DisruptionListenerClient

type DisruptionListenerClient interface {
	SendDisruption(ctx context.Context, in *DisruptionSpec, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DisruptionStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DisruptionSpec, error)
	CleanDisruption(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

DisruptionListenerClient is the client API for DisruptionListener service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DisruptionListenerServer

type DisruptionListenerServer interface {
	SendDisruption(context.Context, *DisruptionSpec) (*emptypb.Empty, error)
	DisruptionStatus(context.Context, *emptypb.Empty) (*DisruptionSpec, error)
	CleanDisruption(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

DisruptionListenerServer is the server API for DisruptionListener service. All implementations must embed UnimplementedDisruptionListenerServer for forward compatibility

type DisruptionSpec

type DisruptionSpec struct {
	EndpointAlterations []*EndpointAlteration `protobuf:"bytes,1,rep,name=endpointAlterations,proto3" json:"endpointAlterations,omitempty"`
	// contains filtered or unexported fields
}

func (*DisruptionSpec) Descriptor deprecated

func (*DisruptionSpec) Descriptor() ([]byte, []int)

Deprecated: Use DisruptionSpec.ProtoReflect.Descriptor instead.

func (*DisruptionSpec) GetEndpointAlterations

func (x *DisruptionSpec) GetEndpointAlterations() []*EndpointAlteration

func (*DisruptionSpec) ProtoMessage

func (*DisruptionSpec) ProtoMessage()

func (*DisruptionSpec) ProtoReflect

func (x *DisruptionSpec) ProtoReflect() protoreflect.Message

func (*DisruptionSpec) Reset

func (x *DisruptionSpec) Reset()

func (*DisruptionSpec) String

func (x *DisruptionSpec) String() string

type EndpointAlteration

type EndpointAlteration struct {
	TargetEndpoint   string `protobuf:"bytes,1,opt,name=targetEndpoint,proto3" json:"targetEndpoint,omitempty"`
	ErrorToReturn    string `protobuf:"bytes,2,opt,name=errorToReturn,proto3" json:"errorToReturn,omitempty"`
	OverrideToReturn string `protobuf:"bytes,3,opt,name=overrideToReturn,proto3" json:"overrideToReturn,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointAlteration) Descriptor deprecated

func (*EndpointAlteration) Descriptor() ([]byte, []int)

Deprecated: Use EndpointAlteration.ProtoReflect.Descriptor instead.

func (*EndpointAlteration) GetErrorToReturn

func (x *EndpointAlteration) GetErrorToReturn() string

func (*EndpointAlteration) GetOverrideToReturn

func (x *EndpointAlteration) GetOverrideToReturn() string

func (*EndpointAlteration) GetTargetEndpoint

func (x *EndpointAlteration) GetTargetEndpoint() string

func (*EndpointAlteration) ProtoMessage

func (*EndpointAlteration) ProtoMessage()

func (*EndpointAlteration) ProtoReflect

func (x *EndpointAlteration) ProtoReflect() protoreflect.Message

func (*EndpointAlteration) Reset

func (x *EndpointAlteration) Reset()

func (*EndpointAlteration) String

func (x *EndpointAlteration) String() string

type UnimplementedDisruptionListenerServer

type UnimplementedDisruptionListenerServer struct {
}

UnimplementedDisruptionListenerServer must be embedded to have forward compatible implementations.

func (UnimplementedDisruptionListenerServer) CleanDisruption

func (UnimplementedDisruptionListenerServer) DisruptionStatus

func (UnimplementedDisruptionListenerServer) SendDisruption

type UnsafeDisruptionListenerServer

type UnsafeDisruptionListenerServer interface {
	// contains filtered or unexported methods
}

UnsafeDisruptionListenerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DisruptionListenerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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