Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_aug_proto protoreflect.FileDescriptor
var TemplateAugmentor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TemplateAugmentor", HandlerType: (*TemplateAugmentorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Id", Handler: _TemplateAugmentor_Id_Handler, }, { MethodName: "Augment", Handler: _TemplateAugmentor_Augment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aug.proto", }
TemplateAugmentor_ServiceDesc is the grpc.ServiceDesc for TemplateAugmentor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTemplateAugmentorServer ¶
func RegisterTemplateAugmentorServer(s grpc.ServiceRegistrar, srv TemplateAugmentorServer)
Types ¶
type AugmentResponse ¶
type AugmentResponse struct { Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*AugmentResponse) Descriptor
deprecated
func (*AugmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AugmentResponse.ProtoReflect.Descriptor instead.
func (*AugmentResponse) GetErr ¶
func (x *AugmentResponse) GetErr() string
func (*AugmentResponse) ProtoMessage ¶
func (*AugmentResponse) ProtoMessage()
func (*AugmentResponse) ProtoReflect ¶
func (x *AugmentResponse) ProtoReflect() protoreflect.Message
func (*AugmentResponse) Reset ¶
func (x *AugmentResponse) Reset()
func (*AugmentResponse) String ¶
func (x *AugmentResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type IdResponse ¶
type IdResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdResponse) Descriptor
deprecated
func (*IdResponse) Descriptor() ([]byte, []int)
Deprecated: Use IdResponse.ProtoReflect.Descriptor instead.
func (*IdResponse) GetId ¶
func (x *IdResponse) GetId() string
func (*IdResponse) ProtoMessage ¶
func (*IdResponse) ProtoMessage()
func (*IdResponse) ProtoReflect ¶
func (x *IdResponse) ProtoReflect() protoreflect.Message
func (*IdResponse) Reset ¶
func (x *IdResponse) Reset()
func (*IdResponse) String ¶
func (x *IdResponse) String() string
type TemplateAugmentorClient ¶
type TemplateAugmentorClient interface { Id(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*IdResponse, error) Augment(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
TemplateAugmentorClient is the client API for TemplateAugmentor 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 NewTemplateAugmentorClient ¶
func NewTemplateAugmentorClient(cc grpc.ClientConnInterface) TemplateAugmentorClient
type TemplateAugmentorServer ¶
type TemplateAugmentorServer interface { Id(context.Context, *Empty) (*IdResponse, error) Augment(context.Context, *Empty) (*Empty, error) // contains filtered or unexported methods }
TemplateAugmentorServer is the server API for TemplateAugmentor service. All implementations must embed UnimplementedTemplateAugmentorServer for forward compatibility
type UnimplementedTemplateAugmentorServer ¶
type UnimplementedTemplateAugmentorServer struct { }
UnimplementedTemplateAugmentorServer must be embedded to have forward compatible implementations.
func (UnimplementedTemplateAugmentorServer) Id ¶
func (UnimplementedTemplateAugmentorServer) Id(context.Context, *Empty) (*IdResponse, error)
type UnsafeTemplateAugmentorServer ¶
type UnsafeTemplateAugmentorServer interface {
// contains filtered or unexported methods
}
UnsafeTemplateAugmentorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TemplateAugmentorServer will result in compilation errors.