pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Actions_Run_FullMethodName = "/pb.Actions/Run"
)

Variables

View Source
var Actions_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Actions",
	HandlerType: (*ActionsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Run",
			Handler:    _Actions_Run_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/actions.proto",
}

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

View Source
var File_pb_actions_proto protoreflect.FileDescriptor

Functions

func RegisterActionsServer

func RegisterActionsServer(s grpc.ServiceRegistrar, srv ActionsServer)

Types

type ActionsClient

type ActionsClient interface {
	Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (*RunResponse, error)
}

ActionsClient is the client API for Actions 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 NewActionsClient

func NewActionsClient(cc grpc.ClientConnInterface) ActionsClient

type ActionsServer

type ActionsServer interface {
	Run(context.Context, *RunRequest) (*RunResponse, error)
}

ActionsServer is the server API for Actions service. All implementations should embed UnimplementedActionsServer for forward compatibility

type RunRequest

type RunRequest struct {
	Args []string          `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	With map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RunRequest) Descriptor deprecated

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

Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.

func (*RunRequest) GetArgs

func (x *RunRequest) GetArgs() []string

func (*RunRequest) GetWith

func (x *RunRequest) GetWith() map[string]string

func (*RunRequest) ProtoMessage

func (*RunRequest) ProtoMessage()

func (*RunRequest) ProtoReflect

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

func (*RunRequest) Reset

func (x *RunRequest) Reset()

func (*RunRequest) String

func (x *RunRequest) String() string

type RunResponse

type RunResponse struct {
	Result map[string]string `` /* 153-byte string literal not displayed */
	Error  string            `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*RunResponse) Descriptor deprecated

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

Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.

func (*RunResponse) GetError

func (x *RunResponse) GetError() string

func (*RunResponse) GetResult

func (x *RunResponse) GetResult() map[string]string

func (*RunResponse) ProtoMessage

func (*RunResponse) ProtoMessage()

func (*RunResponse) ProtoReflect

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

func (*RunResponse) Reset

func (x *RunResponse) Reset()

func (*RunResponse) String

func (x *RunResponse) String() string

type UnimplementedActionsServer

type UnimplementedActionsServer struct {
}

UnimplementedActionsServer should be embedded to have forward compatible implementations.

func (UnimplementedActionsServer) Run

type UnsafeActionsServer

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

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

Jump to

Keyboard shortcuts

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