pb

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Crog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Crog",
	HandlerType: (*CrogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Crog_List_Handler,
		},
		{
			MethodName: "Run",
			Handler:    _Crog_Run_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "run.proto",
}

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

Functions

func RegisterCrogServer

func RegisterCrogServer(s grpc.ServiceRegistrar, srv CrogServer)

Types

type Action

type Action struct {
	Name    string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Command string      `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	Code    int64       `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"`
	Cron    string      `protobuf:"bytes,4,opt,name=cron,proto3" json:"cron,omitempty"`
	When    *ActionWhen `protobuf:"bytes,5,opt,name=when,proto3" json:"when,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetCode

func (x *Action) GetCode() int64

func (*Action) GetCommand

func (x *Action) GetCommand() string

func (*Action) GetCron added in v0.2.4

func (x *Action) GetCron() string

func (*Action) GetName

func (x *Action) GetName() string

func (*Action) GetWhen added in v0.2.4

func (x *Action) GetWhen() *ActionWhen

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type ActionWhen added in v0.2.4

type ActionWhen struct {
	Start   string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	Success string `protobuf:"bytes,2,opt,name=success,proto3" json:"success,omitempty"`
	Failure string `protobuf:"bytes,3,opt,name=failure,proto3" json:"failure,omitempty"`
	// contains filtered or unexported fields
}

func (*ActionWhen) Descriptor deprecated added in v0.2.4

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

Deprecated: Use ActionWhen.ProtoReflect.Descriptor instead.

func (*ActionWhen) GetFailure added in v0.2.4

func (x *ActionWhen) GetFailure() string

func (*ActionWhen) GetStart added in v0.2.4

func (x *ActionWhen) GetStart() string

func (*ActionWhen) GetSuccess added in v0.2.4

func (x *ActionWhen) GetSuccess() string

func (*ActionWhen) ProtoMessage added in v0.2.4

func (*ActionWhen) ProtoMessage()

func (*ActionWhen) ProtoReflect added in v0.2.4

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

func (*ActionWhen) Reset added in v0.2.4

func (x *ActionWhen) Reset()

func (*ActionWhen) String added in v0.2.4

func (x *ActionWhen) String() string

type CrogClient

type CrogClient interface {
	List(ctx context.Context, in *ListActionsRequest, opts ...grpc.CallOption) (*ListActionsResponse, error)
	Run(ctx context.Context, in *RunActionRequest, opts ...grpc.CallOption) (*RunActionResponse, error)
}

CrogClient is the client API for Crog 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 NewCrogClient

func NewCrogClient(cc grpc.ClientConnInterface) CrogClient

type CrogServer

type CrogServer interface {
	List(context.Context, *ListActionsRequest) (*ListActionsResponse, error)
	Run(context.Context, *RunActionRequest) (*RunActionResponse, error)
	// contains filtered or unexported methods
}

CrogServer is the server API for Crog service. All implementations must embed UnimplementedCrogServer for forward compatibility

type ListActionsRequest

type ListActionsRequest struct {
	// contains filtered or unexported fields
}

func (*ListActionsRequest) Descriptor deprecated

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

Deprecated: Use ListActionsRequest.ProtoReflect.Descriptor instead.

func (*ListActionsRequest) ProtoMessage

func (*ListActionsRequest) ProtoMessage()

func (*ListActionsRequest) ProtoReflect

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

func (*ListActionsRequest) Reset

func (x *ListActionsRequest) Reset()

func (*ListActionsRequest) String

func (x *ListActionsRequest) String() string

type ListActionsResponse

type ListActionsResponse struct {
	Actions []*Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActionsResponse) Descriptor deprecated

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

Deprecated: Use ListActionsResponse.ProtoReflect.Descriptor instead.

func (*ListActionsResponse) GetActions

func (x *ListActionsResponse) GetActions() []*Action

func (*ListActionsResponse) ProtoMessage

func (*ListActionsResponse) ProtoMessage()

func (*ListActionsResponse) ProtoReflect

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

func (*ListActionsResponse) Reset

func (x *ListActionsResponse) Reset()

func (*ListActionsResponse) String

func (x *ListActionsResponse) String() string

type RunActionRequest

type RunActionRequest struct {
	Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*RunActionRequest) Descriptor deprecated

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

Deprecated: Use RunActionRequest.ProtoReflect.Descriptor instead.

func (*RunActionRequest) GetAction

func (x *RunActionRequest) GetAction() string

func (*RunActionRequest) ProtoMessage

func (*RunActionRequest) ProtoMessage()

func (*RunActionRequest) ProtoReflect

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

func (*RunActionRequest) Reset

func (x *RunActionRequest) Reset()

func (*RunActionRequest) String

func (x *RunActionRequest) String() string

type RunActionResponse

type RunActionResponse struct {
	Action *Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Err    string  `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	Stdout string  `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Code   int64   `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*RunActionResponse) Descriptor deprecated

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

Deprecated: Use RunActionResponse.ProtoReflect.Descriptor instead.

func (*RunActionResponse) GetAction

func (x *RunActionResponse) GetAction() *Action

func (*RunActionResponse) GetCode

func (x *RunActionResponse) GetCode() int64

func (*RunActionResponse) GetErr added in v0.2.6

func (x *RunActionResponse) GetErr() string

func (*RunActionResponse) GetStdout

func (x *RunActionResponse) GetStdout() string

func (*RunActionResponse) ProtoMessage

func (*RunActionResponse) ProtoMessage()

func (*RunActionResponse) ProtoReflect

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

func (*RunActionResponse) Reset

func (x *RunActionResponse) Reset()

func (*RunActionResponse) String

func (x *RunActionResponse) String() string

type UnimplementedCrogServer

type UnimplementedCrogServer struct {
}

UnimplementedCrogServer must be embedded to have forward compatible implementations.

func (UnimplementedCrogServer) List

func (UnimplementedCrogServer) Run

type UnsafeCrogServer

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

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

Jump to

Keyboard shortcuts

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