plugin

package
v0.0.0-...-0a0123b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_python_proto protoreflect.FileDescriptor
View Source
var PythonService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugin.PythonService",
	HandlerType: (*PythonServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Generate",
			Handler:    _PythonService_Generate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/python.proto",
}

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

Functions

func RegisterPythonServiceServer

func RegisterPythonServiceServer(s grpc.ServiceRegistrar, srv PythonServiceServer)

Types

type Exif

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

func (*Exif) Descriptor deprecated

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

Deprecated: Use Exif.ProtoReflect.Descriptor instead.

func (*Exif) GetKey

func (x *Exif) GetKey() string

func (*Exif) GetValue

func (x *Exif) GetValue() string

func (*Exif) ProtoMessage

func (*Exif) ProtoMessage()

func (*Exif) ProtoReflect

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

func (*Exif) Reset

func (x *Exif) Reset()

func (*Exif) String

func (x *Exif) String() string

type GenerateRequest

type GenerateRequest struct {
	Meta      *chals.Meta      `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Challenge *PythonChallenge `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Resources *chals.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateRequest) Descriptor deprecated

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

Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.

func (*GenerateRequest) GetChallenge

func (x *GenerateRequest) GetChallenge() *PythonChallenge

func (*GenerateRequest) GetMeta

func (x *GenerateRequest) GetMeta() *chals.Meta

func (*GenerateRequest) GetResources

func (x *GenerateRequest) GetResources() *chals.Resources

func (*GenerateRequest) ProtoMessage

func (*GenerateRequest) ProtoMessage()

func (*GenerateRequest) ProtoReflect

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

func (*GenerateRequest) Reset

func (x *GenerateRequest) Reset()

func (*GenerateRequest) String

func (x *GenerateRequest) String() string

type GenerateResponse

type GenerateResponse struct {
	Display string `protobuf:"bytes,1,opt,name=display,proto3" json:"display,omitempty"`
	File    string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateResponse) Descriptor deprecated

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

Deprecated: Use GenerateResponse.ProtoReflect.Descriptor instead.

func (*GenerateResponse) GetDisplay

func (x *GenerateResponse) GetDisplay() string

func (*GenerateResponse) GetFile

func (x *GenerateResponse) GetFile() string

func (*GenerateResponse) ProtoMessage

func (*GenerateResponse) ProtoMessage()

func (*GenerateResponse) ProtoReflect

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

func (*GenerateResponse) Reset

func (x *GenerateResponse) Reset()

func (*GenerateResponse) String

func (x *GenerateResponse) String() string

type PythonChallenge

type PythonChallenge struct {

	// Types that are assignable to Type:
	//
	//	*PythonChallenge_Exif
	Type isPythonChallenge_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*PythonChallenge) Descriptor deprecated

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

Deprecated: Use PythonChallenge.ProtoReflect.Descriptor instead.

func (*PythonChallenge) GetExif

func (x *PythonChallenge) GetExif() *Exif

func (*PythonChallenge) GetType

func (m *PythonChallenge) GetType() isPythonChallenge_Type

func (*PythonChallenge) ProtoMessage

func (*PythonChallenge) ProtoMessage()

func (*PythonChallenge) ProtoReflect

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

func (*PythonChallenge) Reset

func (x *PythonChallenge) Reset()

func (*PythonChallenge) String

func (x *PythonChallenge) String() string

type PythonChallenge_Exif

type PythonChallenge_Exif struct {
	Exif *Exif `protobuf:"bytes,1,opt,name=exif,proto3,oneof"`
}

type PythonServiceClient

type PythonServiceClient interface {
	Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error)
}

PythonServiceClient is the client API for PythonService 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 PythonServiceServer

type PythonServiceServer interface {
	Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
}

PythonServiceServer is the server API for PythonService service. All implementations should embed UnimplementedPythonServiceServer for forward compatibility

type UnimplementedPythonServiceServer

type UnimplementedPythonServiceServer struct {
}

UnimplementedPythonServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPythonServiceServer) Generate

type UnsafePythonServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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