pmamar

package
v0.0.0-...-6aa0dfc Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protobufs_mamar_port_proto protoreflect.FileDescriptor
View Source
var Mamar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mamar.mamar",
	HandlerType: (*MamarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPort",
			Handler:    _Mamar_GetPort_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobufs/mamar/port.proto",
}

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

Functions

func RegisterMamarServer

func RegisterMamarServer(s grpc.ServiceRegistrar, srv MamarServer)

Types

type MamarClient

type MamarClient interface {
	GetPort(ctx context.Context, in *Service, opts ...grpc.CallOption) (*Port, error)
}

MamarClient is the client API for Mamar 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 NewMamarClient

func NewMamarClient(cc grpc.ClientConnInterface) MamarClient

type MamarServer

type MamarServer interface {
	GetPort(context.Context, *Service) (*Port, error)
	// contains filtered or unexported methods
}

MamarServer is the server API for Mamar service. All implementations must embed UnimplementedMamarServer for forward compatibility

type Port

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

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetAddress

func (x *Port) GetAddress() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

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

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type Service

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

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type UnimplementedMamarServer

type UnimplementedMamarServer struct {
}

UnimplementedMamarServer must be embedded to have forward compatible implementations.

func (UnimplementedMamarServer) GetPort

type UnsafeMamarServer

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

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

Jump to

Keyboard shortcuts

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