proto

package
v0.0.0-...-1b94cb7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

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) Augment

func (UnimplementedTemplateAugmentorServer) Id

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.

Jump to

Keyboard shortcuts

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