proto

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Render_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCESS",
		2: "FAILURE",
	}
	Render_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"SUCCESS": 1,
		"FAILURE": 2,
	}
)

Enum value maps for Render_Status.

View Source
var (
	Diagnostic_Severity_name = map[int32]string{
		0: "INVALID",
		1: "ERROR",
		2: "WARNING",
	}
	Diagnostic_Severity_value = map[string]int32{
		"INVALID": 0,
		"ERROR":   1,
		"WARNING": 2,
	}
)

Enum value maps for Diagnostic_Severity.

View Source
var File_proto_htmx_proto protoreflect.FileDescriptor
View Source
var Plugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Plugin",
	HandlerType: (*PluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Render",
			Handler:    _Plugin_Render_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/htmx.proto",
}

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

Functions

func RegisterPluginServer

func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)

Types

type Diagnostic

type Diagnostic struct {
	Severity  Diagnostic_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=proto.Diagnostic_Severity" json:"severity,omitempty"`
	Summary   string              `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Detail    string              `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	FilePaths []string            `protobuf:"bytes,4,rep,name=FilePaths,proto3" json:"FilePaths,omitempty"`
	// contains filtered or unexported fields
}

/ Diagnostic ...

func DiagnosticFromError

func DiagnosticFromError(err error) *Diagnostic

DiagnosticFromError ...

func (*Diagnostic) Descriptor deprecated

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

Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.

func (*Diagnostic) GetDetail

func (x *Diagnostic) GetDetail() string

func (*Diagnostic) GetFilePaths

func (x *Diagnostic) GetFilePaths() []string

func (*Diagnostic) GetSeverity

func (x *Diagnostic) GetSeverity() Diagnostic_Severity

func (*Diagnostic) GetSummary

func (x *Diagnostic) GetSummary() string

func (*Diagnostic) ProtoMessage

func (*Diagnostic) ProtoMessage()

func (*Diagnostic) ProtoReflect

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

func (*Diagnostic) Reset

func (x *Diagnostic) Reset()

func (*Diagnostic) String

func (x *Diagnostic) String() string

type Diagnostic_Severity

type Diagnostic_Severity int32
const (
	Diagnostic_INVALID Diagnostic_Severity = 0
	Diagnostic_ERROR   Diagnostic_Severity = 1
	Diagnostic_WARNING Diagnostic_Severity = 2
)

func (Diagnostic_Severity) Descriptor

func (Diagnostic_Severity) Enum

func (Diagnostic_Severity) EnumDescriptor deprecated

func (Diagnostic_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Diagnostic_Severity.Descriptor instead.

func (Diagnostic_Severity) Number

func (Diagnostic_Severity) String

func (x Diagnostic_Severity) String() string

func (Diagnostic_Severity) Type

type PluginClient

type PluginClient interface {
	// / Render ...
	Render(ctx context.Context, in *Render_Request, opts ...grpc.CallOption) (*Render_Response, error)
}

PluginClient is the client API for Plugin 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 NewPluginClient

func NewPluginClient(cc grpc.ClientConnInterface) PluginClient

type PluginServer

type PluginServer interface {
	// / Render ...
	Render(context.Context, *Render_Request) (*Render_Response, error)
	// contains filtered or unexported methods
}

PluginServer is the server API for Plugin service. All implementations must embed UnimplementedPluginServer for forward compatibility

type Render

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

/ Render ...

func (*Render) Descriptor deprecated

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

Deprecated: Use Render.ProtoReflect.Descriptor instead.

func (*Render) ProtoMessage

func (*Render) ProtoMessage()

func (*Render) ProtoReflect

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

func (*Render) Reset

func (x *Render) Reset()

func (*Render) String

func (x *Render) String() string

type Render_Request

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

/ Request ...

func (*Render_Request) Descriptor deprecated

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

Deprecated: Use Render_Request.ProtoReflect.Descriptor instead.

func (*Render_Request) GetArgs

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

func (*Render_Request) GetVars

func (x *Render_Request) GetVars() map[string]string

func (*Render_Request) GetVersion

func (x *Render_Request) GetVersion() string

func (*Render_Request) ProtoMessage

func (*Render_Request) ProtoMessage()

func (*Render_Request) ProtoReflect

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

func (*Render_Request) Reset

func (x *Render_Request) Reset()

func (*Render_Request) String

func (x *Render_Request) String() string

type Render_Response

type Render_Response struct {
	Status     Render_Status `protobuf:"varint,1,opt,name=status,proto3,enum=proto.Render_Status" json:"status,omitempty"`
	Diagnostic []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostic,proto3" json:"diagnostic,omitempty"`
	Content    string        `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

/ Response ...

func (*Render_Response) Descriptor deprecated

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

Deprecated: Use Render_Response.ProtoReflect.Descriptor instead.

func (*Render_Response) GetContent

func (x *Render_Response) GetContent() string

func (*Render_Response) GetDiagnostic

func (x *Render_Response) GetDiagnostic() []*Diagnostic

func (*Render_Response) GetStatus

func (x *Render_Response) GetStatus() Render_Status

func (*Render_Response) ProtoMessage

func (*Render_Response) ProtoMessage()

func (*Render_Response) ProtoReflect

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

func (*Render_Response) Reset

func (x *Render_Response) Reset()

func (*Render_Response) String

func (x *Render_Response) String() string

type Render_Status

type Render_Status int32
const (
	Render_UNKNOWN Render_Status = 0
	Render_SUCCESS Render_Status = 1
	Render_FAILURE Render_Status = 2
)

func (Render_Status) Descriptor

func (Render_Status) Enum

func (x Render_Status) Enum() *Render_Status

func (Render_Status) EnumDescriptor deprecated

func (Render_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Render_Status.Descriptor instead.

func (Render_Status) Number

func (Render_Status) String

func (x Render_Status) String() string

func (Render_Status) Type

type UnimplementedPluginServer

type UnimplementedPluginServer struct {
}

UnimplementedPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServer) Render

type UnsafePluginServer

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

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

Jump to

Keyboard shortcuts

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