Documentation ¶
Index ¶
- Variables
- func RegisterRemoteWriteServer(s grpc.ServiceRegistrar, srv RemoteWriteServer)
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) GetAuthorizedClusterID() string
- func (x *Payload) GetContents() []byte
- func (x *Payload) GetHeaders() map[string]string
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) String() string
- type RemoteWriteClient
- type RemoteWriteServer
- type UnimplementedRemoteWriteServer
- type UnsafeRemoteWriteServer
Constants ¶
This section is empty.
Variables ¶
var File_plugins_cortex_pkg_apis_remotewrite_remotewrite_proto protoreflect.FileDescriptor
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) GetAuthorizedClusterID ¶
func (*Payload) GetContents ¶
func (*Payload) GetHeaders ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
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.
func NewRemoteWriteClient ¶
func NewRemoteWriteClient(cc grpc.ClientConnInterface) RemoteWriteClient
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.
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.