Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_protobufs_mamar_port_proto protoreflect.FileDescriptor
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) GetAddress ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
type UnimplementedMamarServer ¶
type UnimplementedMamarServer struct { }
UnimplementedMamarServer must be embedded to have forward compatible implementations.
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.