msaMonitor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_msa_monitor_proto protoreflect.FileDescriptor
View Source
var Monitor_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "msaMonitor.Monitor",
	HandlerType: (*MonitorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddService",
			Handler:    _Monitor_AddService_Handler,
		},
		{
			MethodName: "DeleteService",
			Handler:    _Monitor_DeleteService_Handler,
		},
		{
			MethodName: "RebuildService",
			Handler:    _Monitor_RebuildService_Handler,
		},
		{
			MethodName: "SetService",
			Handler:    _Monitor_SetService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "msa/proto/msaMonitor.proto",
}

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

Functions

func RegisterMonitorServer

func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer)

Types

type MonitorClient

type MonitorClient interface {
	AddService(ctx context.Context, in *RequestAddService, opts ...grpc.CallOption) (*Response, error)
	DeleteService(ctx context.Context, in *RequestDelService, opts ...grpc.CallOption) (*Response, error)
	RebuildService(ctx context.Context, in *RequestRebuildService, opts ...grpc.CallOption) (*Response, error)
	SetService(ctx context.Context, in *RequestSetService, opts ...grpc.CallOption) (*Response, error)
}

MonitorClient is the client API for Monitor 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 NewMonitorClient

func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient

type MonitorServer

type MonitorServer interface {
	AddService(context.Context, *RequestAddService) (*Response, error)
	DeleteService(context.Context, *RequestDelService) (*Response, error)
	RebuildService(context.Context, *RequestRebuildService) (*Response, error)
	SetService(context.Context, *RequestSetService) (*Response, error)
	// contains filtered or unexported methods
}

MonitorServer is the server API for Monitor service. All implementations must embed UnimplementedMonitorServer for forward compatibility

type RequestAddService

type RequestAddService struct {
	Repo      string `protobuf:"bytes,1,opt,name=Repo,proto3" json:"Repo,omitempty"`
	GroupType string `protobuf:"bytes,2,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestAddService) Descriptor deprecated

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

Deprecated: Use RequestAddService.ProtoReflect.Descriptor instead.

func (*RequestAddService) GetGroupType

func (x *RequestAddService) GetGroupType() string

func (*RequestAddService) GetKey

func (x *RequestAddService) GetKey() string

func (*RequestAddService) GetRepo

func (x *RequestAddService) GetRepo() string

func (*RequestAddService) ProtoMessage

func (*RequestAddService) ProtoMessage()

func (*RequestAddService) ProtoReflect

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

func (*RequestAddService) Reset

func (x *RequestAddService) Reset()

func (*RequestAddService) String

func (x *RequestAddService) String() string

type RequestDelService

type RequestDelService struct {
	GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestDelService) Descriptor deprecated

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

Deprecated: Use RequestDelService.ProtoReflect.Descriptor instead.

func (*RequestDelService) GetGroupType

func (x *RequestDelService) GetGroupType() string

func (*RequestDelService) GetKey

func (x *RequestDelService) GetKey() string

func (*RequestDelService) ProtoMessage

func (*RequestDelService) ProtoMessage()

func (*RequestDelService) ProtoReflect

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

func (*RequestDelService) Reset

func (x *RequestDelService) Reset()

func (*RequestDelService) String

func (x *RequestDelService) String() string

type RequestRebuildService

type RequestRebuildService struct {
	GroupType string `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestRebuildService) Descriptor deprecated

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

Deprecated: Use RequestRebuildService.ProtoReflect.Descriptor instead.

func (*RequestRebuildService) GetGroupType

func (x *RequestRebuildService) GetGroupType() string

func (*RequestRebuildService) GetKey

func (x *RequestRebuildService) GetKey() string

func (*RequestRebuildService) ProtoMessage

func (*RequestRebuildService) ProtoMessage()

func (*RequestRebuildService) ProtoReflect

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

func (*RequestRebuildService) Reset

func (x *RequestRebuildService) Reset()

func (*RequestRebuildService) String

func (x *RequestRebuildService) String() string

type RequestSetService

type RequestSetService struct {
	GroupType string            `protobuf:"bytes,1,opt,name=GroupType,proto3" json:"GroupType,omitempty"`
	Key       string            `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
	Command   msaUtils.Commands `protobuf:"varint,3,opt,name=Command,proto3,enum=msaUtils.Commands" json:"Command,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestSetService) Descriptor deprecated

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

Deprecated: Use RequestSetService.ProtoReflect.Descriptor instead.

func (*RequestSetService) GetCommand

func (x *RequestSetService) GetCommand() msaUtils.Commands

func (*RequestSetService) GetGroupType

func (x *RequestSetService) GetGroupType() string

func (*RequestSetService) GetKey

func (x *RequestSetService) GetKey() string

func (*RequestSetService) ProtoMessage

func (*RequestSetService) ProtoMessage()

func (*RequestSetService) ProtoReflect

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

func (*RequestSetService) Reset

func (x *RequestSetService) Reset()

func (*RequestSetService) String

func (x *RequestSetService) String() string

type Response

type Response struct {
	Success bool `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetSuccess

func (x *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedMonitorServer

type UnimplementedMonitorServer struct {
}

UnimplementedMonitorServer must be embedded to have forward compatible implementations.

func (UnimplementedMonitorServer) AddService

func (UnimplementedMonitorServer) DeleteService

func (UnimplementedMonitorServer) RebuildService

func (UnimplementedMonitorServer) SetService

type UnsafeMonitorServer

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

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

Jump to

Keyboard shortcuts

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