proto

package
v0.0.0-...-af5036f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_services_proto protoreflect.FileDescriptor
View Source
var JugadorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.JugadorService",
	HandlerType: (*JugadorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EnviarJugada",
			Handler:    _JugadorService_EnviarJugada_Handler,
		},
		{
			MethodName: "EnviarPeticion",
			Handler:    _JugadorService_EnviarPeticion_Handler,
		},
		{
			MethodName: "MuertosLuzVerde",
			Handler:    _JugadorService_MuertosLuzVerde_Handler,
		},
		{
			MethodName: "EnviarMuerto",
			Handler:    _JugadorService_EnviarMuerto_Handler,
		},
		{
			MethodName: "EnviarSumas",
			Handler:    _JugadorService_EnviarSumas_Handler,
		},
		{
			MethodName: "EnviarEtapa3",
			Handler:    _JugadorService_EnviarEtapa3_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/services.proto",
}

JugadorService_ServiceDesc is the grpc.ServiceDesc for JugadorService 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 NameNodeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.NameNodeService",
	HandlerType: (*NameNodeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GuardarDireccion",
			Handler:    _NameNodeService_GuardarDireccion_Handler,
		},
		{
			MethodName: "GuardarRegistro",
			Handler:    _NameNodeService_GuardarRegistro_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/services.proto",
}

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

Functions

func RegisterJugadorServiceServer

func RegisterJugadorServiceServer(s grpc.ServiceRegistrar, srv JugadorServiceServer)

func RegisterNameNodeServiceServer

func RegisterNameNodeServiceServer(s grpc.ServiceRegistrar, srv NameNodeServiceServer)

Types

type DatosRegistro

type DatosRegistro struct {
	Jugada     int32 `protobuf:"varint,1,opt,name=jugada,proto3" json:"jugada,omitempty"`
	NumJugador int32 `protobuf:"varint,2,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	Etapa      int32 `protobuf:"varint,3,opt,name=etapa,proto3" json:"etapa,omitempty"`
	// contains filtered or unexported fields
}

func (*DatosRegistro) Descriptor deprecated

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

Deprecated: Use DatosRegistro.ProtoReflect.Descriptor instead.

func (*DatosRegistro) GetEtapa

func (x *DatosRegistro) GetEtapa() int32

func (*DatosRegistro) GetJugada

func (x *DatosRegistro) GetJugada() int32

func (*DatosRegistro) GetNumJugador

func (x *DatosRegistro) GetNumJugador() int32

func (*DatosRegistro) ProtoMessage

func (*DatosRegistro) ProtoMessage()

func (*DatosRegistro) ProtoReflect

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

func (*DatosRegistro) Reset

func (x *DatosRegistro) Reset()

func (*DatosRegistro) String

func (x *DatosRegistro) String() string

type EnviaEtapa3

type EnviaEtapa3 struct {
	JugadaUno     int32 `protobuf:"varint,1,opt,name=jugada_uno,json=jugadaUno,proto3" json:"jugada_uno,omitempty"`
	NumJugadorUno int32 `protobuf:"varint,2,opt,name=num_jugador_uno,json=numJugadorUno,proto3" json:"num_jugador_uno,omitempty"`
	JugadaDos     int32 `protobuf:"varint,3,opt,name=jugada_dos,json=jugadaDos,proto3" json:"jugada_dos,omitempty"`
	NumJugadorDos int32 `protobuf:"varint,4,opt,name=num_jugador_dos,json=numJugadorDos,proto3" json:"num_jugador_dos,omitempty"`
	// contains filtered or unexported fields
}

func (*EnviaEtapa3) Descriptor deprecated

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

Deprecated: Use EnviaEtapa3.ProtoReflect.Descriptor instead.

func (*EnviaEtapa3) GetJugadaDos

func (x *EnviaEtapa3) GetJugadaDos() int32

func (*EnviaEtapa3) GetJugadaUno

func (x *EnviaEtapa3) GetJugadaUno() int32

func (*EnviaEtapa3) GetNumJugadorDos

func (x *EnviaEtapa3) GetNumJugadorDos() int32

func (*EnviaEtapa3) GetNumJugadorUno

func (x *EnviaEtapa3) GetNumJugadorUno() int32

func (*EnviaEtapa3) ProtoMessage

func (*EnviaEtapa3) ProtoMessage()

func (*EnviaEtapa3) ProtoReflect

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

func (*EnviaEtapa3) Reset

func (x *EnviaEtapa3) Reset()

func (*EnviaEtapa3) String

func (x *EnviaEtapa3) String() string

type EnviaMuerto

type EnviaMuerto struct {
	NumJugador int32 `protobuf:"varint,1,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	TipoEtapa  int32 `protobuf:"varint,2,opt,name=tipoEtapa,proto3" json:"tipoEtapa,omitempty"`
	// contains filtered or unexported fields
}

func (*EnviaMuerto) Descriptor deprecated

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

Deprecated: Use EnviaMuerto.ProtoReflect.Descriptor instead.

func (*EnviaMuerto) GetNumJugador

func (x *EnviaMuerto) GetNumJugador() int32

func (*EnviaMuerto) GetTipoEtapa

func (x *EnviaMuerto) GetTipoEtapa() int32

func (*EnviaMuerto) ProtoMessage

func (*EnviaMuerto) ProtoMessage()

func (*EnviaMuerto) ProtoReflect

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

func (*EnviaMuerto) Reset

func (x *EnviaMuerto) Reset()

func (*EnviaMuerto) String

func (x *EnviaMuerto) String() string

type EnviaSumas

type EnviaSumas struct {
	SumaEquipo1 int32 `protobuf:"varint,1,opt,name=sumaEquipo1,proto3" json:"sumaEquipo1,omitempty"`
	SumaEquipo2 int32 `protobuf:"varint,2,opt,name=sumaEquipo2,proto3" json:"sumaEquipo2,omitempty"`
	// contains filtered or unexported fields
}

func (*EnviaSumas) Descriptor deprecated

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

Deprecated: Use EnviaSumas.ProtoReflect.Descriptor instead.

func (*EnviaSumas) GetSumaEquipo1

func (x *EnviaSumas) GetSumaEquipo1() int32

func (*EnviaSumas) GetSumaEquipo2

func (x *EnviaSumas) GetSumaEquipo2() int32

func (*EnviaSumas) ProtoMessage

func (*EnviaSumas) ProtoMessage()

func (*EnviaSumas) ProtoReflect

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

func (*EnviaSumas) Reset

func (x *EnviaSumas) Reset()

func (*EnviaSumas) String

func (x *EnviaSumas) String() string

type InfoRegistro

type InfoRegistro struct {
	Jugada     int32 `protobuf:"varint,1,opt,name=jugada,proto3" json:"jugada,omitempty"`
	NumJugador int32 `protobuf:"varint,2,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	TipoEtapa  int32 `protobuf:"varint,3,opt,name=tipoEtapa,proto3" json:"tipoEtapa,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoRegistro) Descriptor deprecated

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

Deprecated: Use InfoRegistro.ProtoReflect.Descriptor instead.

func (*InfoRegistro) GetJugada

func (x *InfoRegistro) GetJugada() int32

func (*InfoRegistro) GetNumJugador

func (x *InfoRegistro) GetNumJugador() int32

func (*InfoRegistro) GetTipoEtapa

func (x *InfoRegistro) GetTipoEtapa() int32

func (*InfoRegistro) ProtoMessage

func (*InfoRegistro) ProtoMessage()

func (*InfoRegistro) ProtoReflect

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

func (*InfoRegistro) Reset

func (x *InfoRegistro) Reset()

func (*InfoRegistro) String

func (x *InfoRegistro) String() string

type Jugada

type Jugada struct {
	Jugada     int32 `protobuf:"varint,1,opt,name=jugada,proto3" json:"jugada,omitempty"`
	NumJugador int32 `protobuf:"varint,2,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	TipoEtapa  int32 `protobuf:"varint,3,opt,name=tipoEtapa,proto3" json:"tipoEtapa,omitempty"`
	SumaEtapa1 int32 `protobuf:"varint,4,opt,name=sumaEtapa1,proto3" json:"sumaEtapa1,omitempty"`
	// contains filtered or unexported fields
}

func (*Jugada) Descriptor deprecated

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

Deprecated: Use Jugada.ProtoReflect.Descriptor instead.

func (*Jugada) GetJugada

func (x *Jugada) GetJugada() int32

func (*Jugada) GetNumJugador

func (x *Jugada) GetNumJugador() int32

func (*Jugada) GetSumaEtapa1

func (x *Jugada) GetSumaEtapa1() int32

func (*Jugada) GetTipoEtapa

func (x *Jugada) GetTipoEtapa() int32

func (*Jugada) ProtoMessage

func (*Jugada) ProtoMessage()

func (*Jugada) ProtoReflect

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

func (*Jugada) Reset

func (x *Jugada) Reset()

func (*Jugada) String

func (x *Jugada) String() string

type JugadorServiceClient

type JugadorServiceClient interface {
	EnviarJugada(ctx context.Context, in *Jugada, opts ...grpc.CallOption) (*ResultadoJugada, error)
	EnviarPeticion(ctx context.Context, in *Peticion, opts ...grpc.CallOption) (*RespuestaPeticion, error)
	MuertosLuzVerde(ctx context.Context, in *Revision, opts ...grpc.CallOption) (*RespuestaRevision, error)
	EnviarMuerto(ctx context.Context, in *EnviaMuerto, opts ...grpc.CallOption) (*RecibeMuerto, error)
	EnviarSumas(ctx context.Context, in *EnviaSumas, opts ...grpc.CallOption) (*RecibeSumas, error)
	EnviarEtapa3(ctx context.Context, in *EnviaEtapa3, opts ...grpc.CallOption) (*RecibeEtapa3, error)
}

JugadorServiceClient is the client API for JugadorService 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 JugadorServiceServer

type JugadorServiceServer interface {
	EnviarJugada(context.Context, *Jugada) (*ResultadoJugada, error)
	EnviarPeticion(context.Context, *Peticion) (*RespuestaPeticion, error)
	MuertosLuzVerde(context.Context, *Revision) (*RespuestaRevision, error)
	EnviarMuerto(context.Context, *EnviaMuerto) (*RecibeMuerto, error)
	EnviarSumas(context.Context, *EnviaSumas) (*RecibeSumas, error)
	EnviarEtapa3(context.Context, *EnviaEtapa3) (*RecibeEtapa3, error)
	// contains filtered or unexported methods
}

JugadorServiceServer is the server API for JugadorService service. All implementations must embed UnimplementedJugadorServiceServer for forward compatibility

type NameNodeServiceClient

type NameNodeServiceClient interface {
	GuardarDireccion(ctx context.Context, in *InfoRegistro, opts ...grpc.CallOption) (*RecibeInfo, error)
	GuardarRegistro(ctx context.Context, in *DatosRegistro, opts ...grpc.CallOption) (*RecibeDatos, error)
}

NameNodeServiceClient is the client API for NameNodeService 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 NameNodeServiceServer

type NameNodeServiceServer interface {
	GuardarDireccion(context.Context, *InfoRegistro) (*RecibeInfo, error)
	GuardarRegistro(context.Context, *DatosRegistro) (*RecibeDatos, error)
	// contains filtered or unexported methods
}

NameNodeServiceServer is the server API for NameNodeService service. All implementations must embed UnimplementedNameNodeServiceServer for forward compatibility

type Peticion

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

func (*Peticion) Descriptor deprecated

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

Deprecated: Use Peticion.ProtoReflect.Descriptor instead.

func (*Peticion) GetPeticion

func (x *Peticion) GetPeticion() string

func (*Peticion) ProtoMessage

func (*Peticion) ProtoMessage()

func (*Peticion) ProtoReflect

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

func (*Peticion) Reset

func (x *Peticion) Reset()

func (*Peticion) String

func (x *Peticion) String() string

type RecibeDatos

type RecibeDatos struct {
	RespuestaDatos int32 `protobuf:"varint,1,opt,name=respuesta_datos,json=respuestaDatos,proto3" json:"respuesta_datos,omitempty"`
	// contains filtered or unexported fields
}

func (*RecibeDatos) Descriptor deprecated

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

Deprecated: Use RecibeDatos.ProtoReflect.Descriptor instead.

func (*RecibeDatos) GetRespuestaDatos

func (x *RecibeDatos) GetRespuestaDatos() int32

func (*RecibeDatos) ProtoMessage

func (*RecibeDatos) ProtoMessage()

func (*RecibeDatos) ProtoReflect

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

func (*RecibeDatos) Reset

func (x *RecibeDatos) Reset()

func (*RecibeDatos) String

func (x *RecibeDatos) String() string

type RecibeEtapa3

type RecibeEtapa3 struct {
	NumJugador int32 `protobuf:"varint,1,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	// contains filtered or unexported fields
}

func (*RecibeEtapa3) Descriptor deprecated

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

Deprecated: Use RecibeEtapa3.ProtoReflect.Descriptor instead.

func (*RecibeEtapa3) GetNumJugador

func (x *RecibeEtapa3) GetNumJugador() int32

func (*RecibeEtapa3) ProtoMessage

func (*RecibeEtapa3) ProtoMessage()

func (*RecibeEtapa3) ProtoReflect

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

func (*RecibeEtapa3) Reset

func (x *RecibeEtapa3) Reset()

func (*RecibeEtapa3) String

func (x *RecibeEtapa3) String() string

type RecibeInfo

type RecibeInfo struct {
	RepuestaInfo int32 `protobuf:"varint,1,opt,name=repuesta_info,json=repuestaInfo,proto3" json:"repuesta_info,omitempty"`
	// contains filtered or unexported fields
}

func (*RecibeInfo) Descriptor deprecated

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

Deprecated: Use RecibeInfo.ProtoReflect.Descriptor instead.

func (*RecibeInfo) GetRepuestaInfo

func (x *RecibeInfo) GetRepuestaInfo() int32

func (*RecibeInfo) ProtoMessage

func (*RecibeInfo) ProtoMessage()

func (*RecibeInfo) ProtoReflect

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

func (*RecibeInfo) Reset

func (x *RecibeInfo) Reset()

func (*RecibeInfo) String

func (x *RecibeInfo) String() string

type RecibeMuerto

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

func (*RecibeMuerto) Descriptor deprecated

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

Deprecated: Use RecibeMuerto.ProtoReflect.Descriptor instead.

func (*RecibeMuerto) GetRes

func (x *RecibeMuerto) GetRes() string

func (*RecibeMuerto) ProtoMessage

func (*RecibeMuerto) ProtoMessage()

func (*RecibeMuerto) ProtoReflect

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

func (*RecibeMuerto) Reset

func (x *RecibeMuerto) Reset()

func (*RecibeMuerto) String

func (x *RecibeMuerto) String() string

type RecibeSumas

type RecibeSumas struct {
	EquipoGanador int32 `protobuf:"varint,1,opt,name=equipoGanador,proto3" json:"equipoGanador,omitempty"`
	// contains filtered or unexported fields
}

func (*RecibeSumas) Descriptor deprecated

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

Deprecated: Use RecibeSumas.ProtoReflect.Descriptor instead.

func (*RecibeSumas) GetEquipoGanador

func (x *RecibeSumas) GetEquipoGanador() int32

func (*RecibeSumas) ProtoMessage

func (*RecibeSumas) ProtoMessage()

func (*RecibeSumas) ProtoReflect

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

func (*RecibeSumas) Reset

func (x *RecibeSumas) Reset()

func (*RecibeSumas) String

func (x *RecibeSumas) String() string

type RespuestaPeticion

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

func (*RespuestaPeticion) Descriptor deprecated

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

Deprecated: Use RespuestaPeticion.ProtoReflect.Descriptor instead.

func (*RespuestaPeticion) GetRespuestaPeticion

func (x *RespuestaPeticion) GetRespuestaPeticion() string

func (*RespuestaPeticion) ProtoMessage

func (*RespuestaPeticion) ProtoMessage()

func (*RespuestaPeticion) ProtoReflect

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

func (*RespuestaPeticion) Reset

func (x *RespuestaPeticion) Reset()

func (*RespuestaPeticion) String

func (x *RespuestaPeticion) String() string

type RespuestaRevision

type RespuestaRevision struct {
	Respuesta  string `protobuf:"bytes,1,opt,name=respuesta,proto3" json:"respuesta,omitempty"`
	NumJugador int32  `protobuf:"varint,2,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	// contains filtered or unexported fields
}

func (*RespuestaRevision) Descriptor deprecated

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

Deprecated: Use RespuestaRevision.ProtoReflect.Descriptor instead.

func (*RespuestaRevision) GetNumJugador

func (x *RespuestaRevision) GetNumJugador() int32

func (*RespuestaRevision) GetRespuesta

func (x *RespuestaRevision) GetRespuesta() string

func (*RespuestaRevision) ProtoMessage

func (*RespuestaRevision) ProtoMessage()

func (*RespuestaRevision) ProtoReflect

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

func (*RespuestaRevision) Reset

func (x *RespuestaRevision) Reset()

func (*RespuestaRevision) String

func (x *RespuestaRevision) String() string

type ResultadoJugada

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

func (*ResultadoJugada) Descriptor deprecated

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

Deprecated: Use ResultadoJugada.ProtoReflect.Descriptor instead.

func (*ResultadoJugada) GetResultado

func (x *ResultadoJugada) GetResultado() string

func (*ResultadoJugada) ProtoMessage

func (*ResultadoJugada) ProtoMessage()

func (*ResultadoJugada) ProtoReflect

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

func (*ResultadoJugada) Reset

func (x *ResultadoJugada) Reset()

func (*ResultadoJugada) String

func (x *ResultadoJugada) String() string

type Revision

type Revision struct {
	SumaEtapa1 int32 `protobuf:"varint,1,opt,name=sumaEtapa1,proto3" json:"sumaEtapa1,omitempty"`
	NumJugador int32 `protobuf:"varint,2,opt,name=num_jugador,json=numJugador,proto3" json:"num_jugador,omitempty"`
	// contains filtered or unexported fields
}

func (*Revision) Descriptor deprecated

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

Deprecated: Use Revision.ProtoReflect.Descriptor instead.

func (*Revision) GetNumJugador

func (x *Revision) GetNumJugador() int32

func (*Revision) GetSumaEtapa1

func (x *Revision) GetSumaEtapa1() int32

func (*Revision) ProtoMessage

func (*Revision) ProtoMessage()

func (*Revision) ProtoReflect

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

func (*Revision) Reset

func (x *Revision) Reset()

func (*Revision) String

func (x *Revision) String() string

type UnimplementedJugadorServiceServer

type UnimplementedJugadorServiceServer struct {
}

UnimplementedJugadorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedJugadorServiceServer) EnviarEtapa3

func (UnimplementedJugadorServiceServer) EnviarJugada

func (UnimplementedJugadorServiceServer) EnviarMuerto

func (UnimplementedJugadorServiceServer) EnviarPeticion

func (UnimplementedJugadorServiceServer) EnviarSumas

func (UnimplementedJugadorServiceServer) MuertosLuzVerde

type UnimplementedNameNodeServiceServer

type UnimplementedNameNodeServiceServer struct {
}

UnimplementedNameNodeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNameNodeServiceServer) GuardarDireccion

func (UnimplementedNameNodeServiceServer) GuardarRegistro

type UnsafeJugadorServiceServer

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

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

type UnsafeNameNodeServiceServer

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

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

Jump to

Keyboard shortcuts

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