Documentation ¶
Index ¶
- Variables
- func RegisterPythonServiceServer(s grpc.ServiceRegistrar, srv PythonServiceServer)
- type Exif
- type GenerateRequest
- func (*GenerateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateRequest) GetChallenge() *PythonChallenge
- func (x *GenerateRequest) GetMeta() *chals.Meta
- func (x *GenerateRequest) GetResources() *chals.Resources
- func (*GenerateRequest) ProtoMessage()
- func (x *GenerateRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateRequest) Reset()
- func (x *GenerateRequest) String() string
- type GenerateResponse
- func (*GenerateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateResponse) GetDisplay() string
- func (x *GenerateResponse) GetFile() string
- func (*GenerateResponse) ProtoMessage()
- func (x *GenerateResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateResponse) Reset()
- func (x *GenerateResponse) String() string
- type PythonChallenge
- func (*PythonChallenge) Descriptor() ([]byte, []int)deprecated
- func (x *PythonChallenge) GetExif() *Exif
- func (m *PythonChallenge) GetType() isPythonChallenge_Type
- func (*PythonChallenge) ProtoMessage()
- func (x *PythonChallenge) ProtoReflect() protoreflect.Message
- func (x *PythonChallenge) Reset()
- func (x *PythonChallenge) String() string
- type PythonChallenge_Exif
- type PythonServiceClient
- type PythonServiceServer
- type UnimplementedPythonServiceServer
- type UnsafePythonServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_plugin_python_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Exif) ProtoMessage()
func (*Exif) ProtoReflect ¶
func (x *Exif) ProtoReflect() protoreflect.Message
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.
func NewPythonServiceClient ¶
func NewPythonServiceClient(cc grpc.ClientConnInterface) PythonServiceClient
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 ¶
func (UnimplementedPythonServiceServer) Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
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.