pluginsprovidersvc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pluginsprovidersvc_svc_proto protoreflect.FileDescriptor
View Source
var PluginsProvider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "autokitteh.pluginsprovidersvc.PluginsProvider",
	HandlerType: (*PluginsProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _PluginsProvider_List_Handler,
		},
		{
			MethodName: "Describe",
			Handler:    _PluginsProvider_Describe_Handler,
		},
		{
			MethodName: "GetValues",
			Handler:    _PluginsProvider_GetValues_Handler,
		},
		{
			MethodName: "CallValue",
			Handler:    _PluginsProvider_CallValue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pluginsprovidersvc/svc.proto",
}

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

Functions

func RegisterPluginsProviderServer

func RegisterPluginsProviderServer(s grpc.ServiceRegistrar, srv PluginsProviderServer)

Types

type CallValueRequest

type CallValueRequest struct {
	Id     string                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Value  *values.Value            `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Args   []*values.Value          `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	Kwargs map[string]*values.Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CallValueRequest) Descriptor deprecated

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

Deprecated: Use CallValueRequest.ProtoReflect.Descriptor instead.

func (*CallValueRequest) GetArgs

func (x *CallValueRequest) GetArgs() []*values.Value

func (*CallValueRequest) GetId

func (x *CallValueRequest) GetId() string

func (*CallValueRequest) GetKwargs

func (x *CallValueRequest) GetKwargs() map[string]*values.Value

func (*CallValueRequest) GetValue

func (x *CallValueRequest) GetValue() *values.Value

func (*CallValueRequest) ProtoMessage

func (*CallValueRequest) ProtoMessage()

func (*CallValueRequest) ProtoReflect

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

func (*CallValueRequest) Reset

func (x *CallValueRequest) Reset()

func (*CallValueRequest) String

func (x *CallValueRequest) String() string

func (*CallValueRequest) Validate

func (m *CallValueRequest) Validate() error

Validate checks the field values on CallValueRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CallValueRequestValidationError

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

CallValueRequestValidationError is the validation error returned by CallValueRequest.Validate if the designated constraints aren't met.

func (CallValueRequestValidationError) Cause

Cause function returns cause value.

func (CallValueRequestValidationError) Error

Error satisfies the builtin error interface

func (CallValueRequestValidationError) ErrorName

ErrorName returns error name.

func (CallValueRequestValidationError) Field

Field function returns field value.

func (CallValueRequestValidationError) Key

Key function returns key value.

func (CallValueRequestValidationError) Reason

Reason function returns reason value.

type CallValueResponse

type CallValueResponse struct {

	// Types that are assignable to Ret:
	//	*CallValueResponse_Retval
	//	*CallValueResponse_Error
	Ret isCallValueResponse_Ret `protobuf_oneof:"ret"`
	// contains filtered or unexported fields
}

func (*CallValueResponse) Descriptor deprecated

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

Deprecated: Use CallValueResponse.ProtoReflect.Descriptor instead.

func (*CallValueResponse) GetError

func (x *CallValueResponse) GetError() *program.Error

func (*CallValueResponse) GetRet

func (m *CallValueResponse) GetRet() isCallValueResponse_Ret

func (*CallValueResponse) GetRetval

func (x *CallValueResponse) GetRetval() *values.Value

func (*CallValueResponse) ProtoMessage

func (*CallValueResponse) ProtoMessage()

func (*CallValueResponse) ProtoReflect

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

func (*CallValueResponse) Reset

func (x *CallValueResponse) Reset()

func (*CallValueResponse) String

func (x *CallValueResponse) String() string

func (*CallValueResponse) Validate

func (m *CallValueResponse) Validate() error

Validate checks the field values on CallValueResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CallValueResponseValidationError

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

CallValueResponseValidationError is the validation error returned by CallValueResponse.Validate if the designated constraints aren't met.

func (CallValueResponseValidationError) Cause

Cause function returns cause value.

func (CallValueResponseValidationError) Error

Error satisfies the builtin error interface

func (CallValueResponseValidationError) ErrorName

ErrorName returns error name.

func (CallValueResponseValidationError) Field

Field function returns field value.

func (CallValueResponseValidationError) Key

Key function returns key value.

func (CallValueResponseValidationError) Reason

Reason function returns reason value.

type CallValueResponse_Error

type CallValueResponse_Error struct {
	Error *program.Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type CallValueResponse_Retval

type CallValueResponse_Retval struct {
	Retval *values.Value `protobuf:"bytes,1,opt,name=retval,proto3,oneof"`
}

type DescribeRequest

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

func (*DescribeRequest) Descriptor deprecated

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

Deprecated: Use DescribeRequest.ProtoReflect.Descriptor instead.

func (*DescribeRequest) GetId

func (x *DescribeRequest) GetId() string

func (*DescribeRequest) ProtoMessage

func (*DescribeRequest) ProtoMessage()

func (*DescribeRequest) ProtoReflect

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

func (*DescribeRequest) Reset

func (x *DescribeRequest) Reset()

func (*DescribeRequest) String

func (x *DescribeRequest) String() string

func (*DescribeRequest) Validate

func (m *DescribeRequest) Validate() error

Validate checks the field values on DescribeRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeRequestValidationError

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

DescribeRequestValidationError is the validation error returned by DescribeRequest.Validate if the designated constraints aren't met.

func (DescribeRequestValidationError) Cause

Cause function returns cause value.

func (DescribeRequestValidationError) Error

Error satisfies the builtin error interface

func (DescribeRequestValidationError) ErrorName

func (e DescribeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DescribeRequestValidationError) Field

Field function returns field value.

func (DescribeRequestValidationError) Key

Key function returns key value.

func (DescribeRequestValidationError) Reason

Reason function returns reason value.

type DescribeResponse

type DescribeResponse struct {
	Desc *plugin.PluginDesc `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeResponse) Descriptor deprecated

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

Deprecated: Use DescribeResponse.ProtoReflect.Descriptor instead.

func (*DescribeResponse) GetDesc

func (x *DescribeResponse) GetDesc() *plugin.PluginDesc

func (*DescribeResponse) ProtoMessage

func (*DescribeResponse) ProtoMessage()

func (*DescribeResponse) ProtoReflect

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

func (*DescribeResponse) Reset

func (x *DescribeResponse) Reset()

func (*DescribeResponse) String

func (x *DescribeResponse) String() string

func (*DescribeResponse) Validate

func (m *DescribeResponse) Validate() error

Validate checks the field values on DescribeResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeResponseValidationError

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

DescribeResponseValidationError is the validation error returned by DescribeResponse.Validate if the designated constraints aren't met.

func (DescribeResponseValidationError) Cause

Cause function returns cause value.

func (DescribeResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribeResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribeResponseValidationError) Field

Field function returns field value.

func (DescribeResponseValidationError) Key

Key function returns key value.

func (DescribeResponseValidationError) Reason

Reason function returns reason value.

type GetValuesRequest

type GetValuesRequest struct {
	Id    string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // if empty, returns all.
	// contains filtered or unexported fields
}

func (*GetValuesRequest) Descriptor deprecated

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

Deprecated: Use GetValuesRequest.ProtoReflect.Descriptor instead.

func (*GetValuesRequest) GetId

func (x *GetValuesRequest) GetId() string

func (*GetValuesRequest) GetNames

func (x *GetValuesRequest) GetNames() []string

func (*GetValuesRequest) ProtoMessage

func (*GetValuesRequest) ProtoMessage()

func (*GetValuesRequest) ProtoReflect

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

func (*GetValuesRequest) Reset

func (x *GetValuesRequest) Reset()

func (*GetValuesRequest) String

func (x *GetValuesRequest) String() string

func (*GetValuesRequest) Validate

func (m *GetValuesRequest) Validate() error

Validate checks the field values on GetValuesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetValuesRequestValidationError

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

GetValuesRequestValidationError is the validation error returned by GetValuesRequest.Validate if the designated constraints aren't met.

func (GetValuesRequestValidationError) Cause

Cause function returns cause value.

func (GetValuesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetValuesRequestValidationError) ErrorName

ErrorName returns error name.

func (GetValuesRequestValidationError) Field

Field function returns field value.

func (GetValuesRequestValidationError) Key

Key function returns key value.

func (GetValuesRequestValidationError) Reason

Reason function returns reason value.

type GetValuesResponse

type GetValuesResponse struct {
	Values map[string]*values.Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetValuesResponse) Descriptor deprecated

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

Deprecated: Use GetValuesResponse.ProtoReflect.Descriptor instead.

func (*GetValuesResponse) GetValues

func (x *GetValuesResponse) GetValues() map[string]*values.Value

func (*GetValuesResponse) ProtoMessage

func (*GetValuesResponse) ProtoMessage()

func (*GetValuesResponse) ProtoReflect

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

func (*GetValuesResponse) Reset

func (x *GetValuesResponse) Reset()

func (*GetValuesResponse) String

func (x *GetValuesResponse) String() string

func (*GetValuesResponse) Validate

func (m *GetValuesResponse) Validate() error

Validate checks the field values on GetValuesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetValuesResponseValidationError

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

GetValuesResponseValidationError is the validation error returned by GetValuesResponse.Validate if the designated constraints aren't met.

func (GetValuesResponseValidationError) Cause

Cause function returns cause value.

func (GetValuesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetValuesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetValuesResponseValidationError) Field

Field function returns field value.

func (GetValuesResponseValidationError) Key

Key function returns key value.

func (GetValuesResponseValidationError) Reason

Reason function returns reason value.

type ListRequest

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

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

func (*ListRequest) Validate

func (m *ListRequest) Validate() error

Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListRequestValidationError

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause

Cause function returns cause value.

func (ListRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field

Field function returns field value.

func (ListRequestValidationError) Key

Key function returns key value.

func (ListRequestValidationError) Reason

Reason function returns reason value.

type ListResponse

type ListResponse struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetIds

func (x *ListResponse) GetIds() []string

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

func (*ListResponse) Validate

func (m *ListResponse) Validate() error

Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListResponseValidationError

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

Reason function returns reason value.

type PluginsProviderClient

type PluginsProviderClient interface {
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Describe(ctx context.Context, in *DescribeRequest, opts ...grpc.CallOption) (*DescribeResponse, error)
	GetValues(ctx context.Context, in *GetValuesRequest, opts ...grpc.CallOption) (*GetValuesResponse, error)
	CallValue(ctx context.Context, in *CallValueRequest, opts ...grpc.CallOption) (*CallValueResponse, error)
}

PluginsProviderClient is the client API for PluginsProvider 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.

type PluginsProviderServer

type PluginsProviderServer interface {
	List(context.Context, *ListRequest) (*ListResponse, error)
	Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
	GetValues(context.Context, *GetValuesRequest) (*GetValuesResponse, error)
	CallValue(context.Context, *CallValueRequest) (*CallValueResponse, error)
	// contains filtered or unexported methods
}

PluginsProviderServer is the server API for PluginsProvider service. All implementations must embed UnimplementedPluginsProviderServer for forward compatibility

type UnimplementedPluginsProviderServer

type UnimplementedPluginsProviderServer struct {
}

UnimplementedPluginsProviderServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginsProviderServer) CallValue

func (UnimplementedPluginsProviderServer) Describe

func (UnimplementedPluginsProviderServer) GetValues

func (UnimplementedPluginsProviderServer) List

type UnsafePluginsProviderServer

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

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

Jump to

Keyboard shortcuts

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