339 lines
12 KiB
Go
339 lines
12 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: logmon.proto
|
||
|
|
||
|
package proto
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
import (
|
||
|
context "golang.org/x/net/context"
|
||
|
grpc "google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the proto package it is being compiled against.
|
||
|
// A compilation error at this line likely means your copy of the
|
||
|
// proto package needs to be updated.
|
||
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
type StartRequest struct {
|
||
|
LogDir string `protobuf:"bytes,1,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`
|
||
|
StdoutFileName string `protobuf:"bytes,2,opt,name=stdout_file_name,json=stdoutFileName,proto3" json:"stdout_file_name,omitempty"`
|
||
|
StderrFileName string `protobuf:"bytes,3,opt,name=stderr_file_name,json=stderrFileName,proto3" json:"stderr_file_name,omitempty"`
|
||
|
MaxFiles uint32 `protobuf:"varint,4,opt,name=max_files,json=maxFiles,proto3" json:"max_files,omitempty"`
|
||
|
MaxFileSizeMb uint32 `protobuf:"varint,5,opt,name=max_file_size_mb,json=maxFileSizeMb,proto3" json:"max_file_size_mb,omitempty"`
|
||
|
StdoutFifo string `protobuf:"bytes,6,opt,name=stdout_fifo,json=stdoutFifo,proto3" json:"stdout_fifo,omitempty"`
|
||
|
StderrFifo string `protobuf:"bytes,7,opt,name=stderr_fifo,json=stderrFifo,proto3" json:"stderr_fifo,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) Reset() { *m = StartRequest{} }
|
||
|
func (m *StartRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StartRequest) ProtoMessage() {}
|
||
|
func (*StartRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_logmon_0690d412b596ec9e, []int{0}
|
||
|
}
|
||
|
func (m *StartRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_StartRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *StartRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_StartRequest.Merge(dst, src)
|
||
|
}
|
||
|
func (m *StartRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_StartRequest.Size(m)
|
||
|
}
|
||
|
func (m *StartRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_StartRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_StartRequest proto.InternalMessageInfo
|
||
|
|
||
|
func (m *StartRequest) GetLogDir() string {
|
||
|
if m != nil {
|
||
|
return m.LogDir
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetStdoutFileName() string {
|
||
|
if m != nil {
|
||
|
return m.StdoutFileName
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetStderrFileName() string {
|
||
|
if m != nil {
|
||
|
return m.StderrFileName
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetMaxFiles() uint32 {
|
||
|
if m != nil {
|
||
|
return m.MaxFiles
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetMaxFileSizeMb() uint32 {
|
||
|
if m != nil {
|
||
|
return m.MaxFileSizeMb
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetStdoutFifo() string {
|
||
|
if m != nil {
|
||
|
return m.StdoutFifo
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *StartRequest) GetStderrFifo() string {
|
||
|
if m != nil {
|
||
|
return m.StderrFifo
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type StartResponse struct {
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *StartResponse) Reset() { *m = StartResponse{} }
|
||
|
func (m *StartResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StartResponse) ProtoMessage() {}
|
||
|
func (*StartResponse) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_logmon_0690d412b596ec9e, []int{1}
|
||
|
}
|
||
|
func (m *StartResponse) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_StartResponse.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *StartResponse) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_StartResponse.Merge(dst, src)
|
||
|
}
|
||
|
func (m *StartResponse) XXX_Size() int {
|
||
|
return xxx_messageInfo_StartResponse.Size(m)
|
||
|
}
|
||
|
func (m *StartResponse) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_StartResponse.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_StartResponse proto.InternalMessageInfo
|
||
|
|
||
|
type StopRequest struct {
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *StopRequest) Reset() { *m = StopRequest{} }
|
||
|
func (m *StopRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StopRequest) ProtoMessage() {}
|
||
|
func (*StopRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_logmon_0690d412b596ec9e, []int{2}
|
||
|
}
|
||
|
func (m *StopRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_StopRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *StopRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_StopRequest.Merge(dst, src)
|
||
|
}
|
||
|
func (m *StopRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_StopRequest.Size(m)
|
||
|
}
|
||
|
func (m *StopRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_StopRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_StopRequest proto.InternalMessageInfo
|
||
|
|
||
|
type StopResponse struct {
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *StopResponse) Reset() { *m = StopResponse{} }
|
||
|
func (m *StopResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*StopResponse) ProtoMessage() {}
|
||
|
func (*StopResponse) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_logmon_0690d412b596ec9e, []int{3}
|
||
|
}
|
||
|
func (m *StopResponse) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_StopResponse.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *StopResponse) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_StopResponse.Merge(dst, src)
|
||
|
}
|
||
|
func (m *StopResponse) XXX_Size() int {
|
||
|
return xxx_messageInfo_StopResponse.Size(m)
|
||
|
}
|
||
|
func (m *StopResponse) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_StopResponse.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_StopResponse proto.InternalMessageInfo
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*StartRequest)(nil), "hashicorp.nomad.client.logmon.proto.StartRequest")
|
||
|
proto.RegisterType((*StartResponse)(nil), "hashicorp.nomad.client.logmon.proto.StartResponse")
|
||
|
proto.RegisterType((*StopRequest)(nil), "hashicorp.nomad.client.logmon.proto.StopRequest")
|
||
|
proto.RegisterType((*StopResponse)(nil), "hashicorp.nomad.client.logmon.proto.StopResponse")
|
||
|
}
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ context.Context
|
||
|
var _ grpc.ClientConn
|
||
|
|
||
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
// is compatible with the grpc package it is being compiled against.
|
||
|
const _ = grpc.SupportPackageIsVersion4
|
||
|
|
||
|
// LogMonClient is the client API for LogMon service.
|
||
|
//
|
||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||
|
type LogMonClient interface {
|
||
|
Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
|
||
|
Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
|
||
|
}
|
||
|
|
||
|
type logMonClient struct {
|
||
|
cc *grpc.ClientConn
|
||
|
}
|
||
|
|
||
|
func NewLogMonClient(cc *grpc.ClientConn) LogMonClient {
|
||
|
return &logMonClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *logMonClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) {
|
||
|
out := new(StartResponse)
|
||
|
err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Start", in, out, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *logMonClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) {
|
||
|
out := new(StopResponse)
|
||
|
err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Stop", in, out, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
// LogMonServer is the server API for LogMon service.
|
||
|
type LogMonServer interface {
|
||
|
Start(context.Context, *StartRequest) (*StartResponse, error)
|
||
|
Stop(context.Context, *StopRequest) (*StopResponse, error)
|
||
|
}
|
||
|
|
||
|
func RegisterLogMonServer(s *grpc.Server, srv LogMonServer) {
|
||
|
s.RegisterService(&_LogMon_serviceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _LogMon_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(StartRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(LogMonServer).Start(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Start",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(LogMonServer).Start(ctx, req.(*StartRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _LogMon_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(StopRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(LogMonServer).Stop(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Stop",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(LogMonServer).Stop(ctx, req.(*StopRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
var _LogMon_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "hashicorp.nomad.client.logmon.proto.LogMon",
|
||
|
HandlerType: (*LogMonServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "Start",
|
||
|
Handler: _LogMon_Start_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "Stop",
|
||
|
Handler: _LogMon_Stop_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "logmon.proto",
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("logmon.proto", fileDescriptor_logmon_0690d412b596ec9e) }
|
||
|
|
||
|
var fileDescriptor_logmon_0690d412b596ec9e = []byte{
|
||
|
// 314 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x31, 0x6f, 0xf2, 0x30,
|
||
|
0x10, 0x86, 0xbf, 0xf0, 0x41, 0x28, 0x07, 0xa1, 0xc8, 0x4b, 0x23, 0x3a, 0x14, 0xa5, 0x43, 0x99,
|
||
|
0xa2, 0x42, 0xff, 0x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