remotewrite

package
v0.5.4-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugins_cortex_pkg_apis_remotewrite_remotewrite_proto protoreflect.FileDescriptor
View Source
var RemoteWrite_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remotewrite.RemoteWrite",
	HandlerType: (*RemoteWriteServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Push",
			Handler:    _RemoteWrite_Push_Handler,
		},
		{
			MethodName: "SyncRules",
			Handler:    _RemoteWrite_SyncRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugins/cortex/pkg/apis/remotewrite/remotewrite.proto",
}

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

Functions

func RegisterRemoteWriteServer

func RegisterRemoteWriteServer(s grpc.ServiceRegistrar, srv RemoteWriteServer)

Types

type Payload

type Payload struct {
	AuthorizedClusterID string            `protobuf:"bytes,1,opt,name=AuthorizedClusterID,proto3" json:"AuthorizedClusterID,omitempty"`
	Headers             map[string]string `` /* 155-byte string literal not displayed */
	Contents            []byte            `protobuf:"bytes,4,opt,name=Contents,proto3" json:"Contents,omitempty"`
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

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

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetAuthorizedClusterID

func (x *Payload) GetAuthorizedClusterID() string

func (*Payload) GetContents

func (x *Payload) GetContents() []byte

func (*Payload) GetHeaders

func (x *Payload) GetHeaders() map[string]string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

type RemoteWriteClient

type RemoteWriteClient interface {
	Push(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SyncRules(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

RemoteWriteClient is the client API for RemoteWrite 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 RemoteWriteServer

type RemoteWriteServer interface {
	Push(context.Context, *Payload) (*emptypb.Empty, error)
	SyncRules(context.Context, *Payload) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

RemoteWriteServer is the server API for RemoteWrite service. All implementations must embed UnimplementedRemoteWriteServer for forward compatibility

type UnimplementedRemoteWriteServer

type UnimplementedRemoteWriteServer struct {
}

UnimplementedRemoteWriteServer must be embedded to have forward compatible implementations.

func (UnimplementedRemoteWriteServer) Push

func (UnimplementedRemoteWriteServer) SyncRules

type UnsafeRemoteWriteServer

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

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

Jump to

Keyboard shortcuts

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