changesetproto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Changeset_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "changset.Changeset",
	HandlerType: (*ChangesetServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Generate",
			Handler:    _Changeset_Generate_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _Changeset_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "changeset.proto",
}

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

View Source
var File_changeset_proto protoreflect.FileDescriptor

Functions

func RegisterChangesetServer

func RegisterChangesetServer(s grpc.ServiceRegistrar, srv ChangesetServer)

Types

type ChangesetClient

type ChangesetClient interface {
	// Sends a greeting
	Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateReply, error)
	Ping(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Nothing, error)
}

ChangesetClient is the client API for Changeset 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 NewChangesetClient

func NewChangesetClient(cc grpc.ClientConnInterface) ChangesetClient

type ChangesetServer

type ChangesetServer interface {
	// Sends a greeting
	Generate(context.Context, *GenerateRequest) (*GenerateReply, error)
	Ping(context.Context, *Nothing) (*Nothing, error)
	// contains filtered or unexported methods
}

ChangesetServer is the server API for Changeset service. All implementations must embed UnimplementedChangesetServer for forward compatibility

type GenerateReply

type GenerateReply struct {
	Changeset string `protobuf:"bytes,1,opt,name=changeset,proto3" json:"changeset,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*GenerateReply) Descriptor deprecated

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

Deprecated: Use GenerateReply.ProtoReflect.Descriptor instead.

func (*GenerateReply) GetChangeset

func (x *GenerateReply) GetChangeset() string

func (*GenerateReply) ProtoMessage

func (*GenerateReply) ProtoMessage()

func (*GenerateReply) ProtoReflect

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

func (*GenerateReply) Reset

func (x *GenerateReply) Reset()

func (*GenerateReply) String

func (x *GenerateReply) String() string

type GenerateRequest

type GenerateRequest struct {
	Oldtext string `protobuf:"bytes,1,opt,name=oldtext,proto3" json:"oldtext,omitempty"`
	Newtext string `protobuf:"bytes,2,opt,name=newtext,proto3" json:"newtext,omitempty"`
	Attribs string `protobuf:"bytes,3,opt,name=attribs,proto3" json:"attribs,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the user's name.

func (*GenerateRequest) Descriptor deprecated

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

Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.

func (*GenerateRequest) GetAttribs

func (x *GenerateRequest) GetAttribs() string

func (*GenerateRequest) GetNewtext

func (x *GenerateRequest) GetNewtext() string

func (*GenerateRequest) GetOldtext

func (x *GenerateRequest) GetOldtext() string

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 Nothing

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

func (*Nothing) Descriptor deprecated

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

Deprecated: Use Nothing.ProtoReflect.Descriptor instead.

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) ProtoReflect

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

func (*Nothing) Reset

func (x *Nothing) Reset()

func (*Nothing) String

func (x *Nothing) String() string

type UnimplementedChangesetServer

type UnimplementedChangesetServer struct {
}

UnimplementedChangesetServer must be embedded to have forward compatible implementations.

func (UnimplementedChangesetServer) Generate

func (UnimplementedChangesetServer) Ping

type UnsafeChangesetServer

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

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

Jump to

Keyboard shortcuts

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