/
cat.pb.go
63 lines (51 loc) · 1.53 KB
/
cat.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Code generated by protoc-gen-go-plugin. DO NOT EDIT.
// versions:
// protoc-gen-go-plugin v0.1.0
// protoc v3.21.12
// source: examples/wasi/cat/cat.proto
package cat
import (
context "context"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type FileCatRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
}
func (x *FileCatRequest) ProtoReflect() protoreflect.Message {
panic(`not implemented`)
}
func (x *FileCatRequest) GetFilePath() string {
if x != nil {
return x.FilePath
}
return ""
}
type FileCatReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (x *FileCatReply) ProtoReflect() protoreflect.Message {
panic(`not implemented`)
}
func (x *FileCatReply) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
// go:plugin type=plugin
type FileCat interface {
Cat(context.Context, *FileCatRequest) (*FileCatReply, error)
}