contactsPb

package
v0.0.0-...-bd22ede Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Contacts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "contacts.Contacts",
	HandlerType: (*ContactsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getContactsList",
			Handler:    _Contacts_GetContactsList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "contacts.proto",
}

Contacts_ServiceDesc is the grpc.ServiceDesc for Contacts 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_contacts_proto protoreflect.FileDescriptor

Functions

func RegisterContactsServer

func RegisterContactsServer(s grpc.ServiceRegistrar, srv ContactsServer)

Types

type ContactsClient

type ContactsClient interface {
	GetContactsList(ctx context.Context, in *GetContactsListReq, opts ...grpc.CallOption) (*GetContactsListRsp, error)
}

ContactsClient is the client API for Contacts 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 NewContactsClient

func NewContactsClient(cc grpc.ClientConnInterface) ContactsClient

type ContactsServer

type ContactsServer interface {
	GetContactsList(context.Context, *GetContactsListReq) (*GetContactsListRsp, error)
	// contains filtered or unexported methods
}

ContactsServer is the server API for Contacts service. All implementations must embed UnimplementedContactsServer for forward compatibility

type GetContactsListReq

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

func (*GetContactsListReq) Descriptor deprecated

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

Deprecated: Use GetContactsListReq.ProtoReflect.Descriptor instead.

func (*GetContactsListReq) ProtoMessage

func (*GetContactsListReq) ProtoMessage()

func (*GetContactsListReq) ProtoReflect

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

func (*GetContactsListReq) Reset

func (x *GetContactsListReq) Reset()

func (*GetContactsListReq) String

func (x *GetContactsListReq) String() string

type GetContactsListRsp

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

func (*GetContactsListRsp) Descriptor deprecated

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

Deprecated: Use GetContactsListRsp.ProtoReflect.Descriptor instead.

func (*GetContactsListRsp) ProtoMessage

func (*GetContactsListRsp) ProtoMessage()

func (*GetContactsListRsp) ProtoReflect

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

func (*GetContactsListRsp) Reset

func (x *GetContactsListRsp) Reset()

func (*GetContactsListRsp) String

func (x *GetContactsListRsp) String() string

type UnimplementedContactsServer

type UnimplementedContactsServer struct {
}

UnimplementedContactsServer must be embedded to have forward compatible implementations.

func (UnimplementedContactsServer) GetContactsList

type UnsafeContactsServer

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

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

Jump to

Keyboard shortcuts

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