pb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EquipService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.EquipService",
	HandlerType: (*EquipServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _EquipService_Get_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _EquipService_GetAll_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _EquipService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _EquipService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _EquipService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "equip_service.proto",
}

EquipService_ServiceDesc is the grpc.ServiceDesc for EquipService 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_common_proto protoreflect.FileDescriptor
View Source
var File_equip_proto protoreflect.FileDescriptor
View Source
var File_equip_service_proto protoreflect.FileDescriptor
View Source
var File_point_proto protoreflect.FileDescriptor
View Source
var File_point_service_proto protoreflect.FileDescriptor
View Source
var PointService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.PointService",
	HandlerType: (*PointServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _PointService_Get_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _PointService_GetAll_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _PointService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _PointService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _PointService_Delete_Handler,
		},
		{
			MethodName: "GetAllByEquipUUID",
			Handler:    _PointService_GetAllByEquipUUID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "point_service.proto",
}

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

Functions

func RegisterEquipServiceServer

func RegisterEquipServiceServer(s grpc.ServiceRegistrar, srv EquipServiceServer)

func RegisterPointServiceServer

func RegisterPointServiceServer(s grpc.ServiceRegistrar, srv PointServiceServer)

Types

type DeleteResponse

type DeleteResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetSuccess

func (x *DeleteResponse) GetSuccess() bool

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Equip

type Equip struct {
	Uuid        string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name        string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Enabled     bool                   `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	DateCreated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	LastUpdated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"`
	// contains filtered or unexported fields
}

func (*Equip) Descriptor deprecated

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

Deprecated: Use Equip.ProtoReflect.Descriptor instead.

func (*Equip) GetDateCreated

func (x *Equip) GetDateCreated() *timestamppb.Timestamp

func (*Equip) GetEnabled

func (x *Equip) GetEnabled() bool

func (*Equip) GetLastUpdated

func (x *Equip) GetLastUpdated() *timestamppb.Timestamp

func (*Equip) GetName

func (x *Equip) GetName() string

func (*Equip) GetUuid

func (x *Equip) GetUuid() string

func (*Equip) ProtoMessage

func (*Equip) ProtoMessage()

func (*Equip) ProtoReflect

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

func (*Equip) Reset

func (x *Equip) Reset()

func (*Equip) String

func (x *Equip) String() string

type EquipList

type EquipList struct {
	Equips []*Equip `protobuf:"bytes,1,rep,name=Equips,proto3" json:"Equips,omitempty"`
	// contains filtered or unexported fields
}

func (*EquipList) Descriptor deprecated

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

Deprecated: Use EquipList.ProtoReflect.Descriptor instead.

func (*EquipList) GetEquips

func (x *EquipList) GetEquips() []*Equip

func (*EquipList) ProtoMessage

func (*EquipList) ProtoMessage()

func (*EquipList) ProtoReflect

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

func (*EquipList) Reset

func (x *EquipList) Reset()

func (*EquipList) String

func (x *EquipList) String() string

type EquipServiceClient

type EquipServiceClient interface {
	Get(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*Equip, error)
	GetAll(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*EquipList, error)
	Create(ctx context.Context, in *Equip, opts ...grpc.CallOption) (*Equip, error)
	Update(ctx context.Context, in *Equip, opts ...grpc.CallOption) (*Equip, error)
	Delete(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*DeleteResponse, error)
}

EquipServiceClient is the client API for EquipService 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 EquipServiceServer

type EquipServiceServer interface {
	Get(context.Context, *EquipUUID) (*Equip, error)
	GetAll(context.Context, *ListRequest) (*EquipList, error)
	Create(context.Context, *Equip) (*Equip, error)
	Update(context.Context, *Equip) (*Equip, error)
	Delete(context.Context, *EquipUUID) (*DeleteResponse, error)
	// contains filtered or unexported methods
}

EquipServiceServer is the server API for EquipService service. All implementations must embed UnimplementedEquipServiceServer for forward compatibility

type EquipUUID

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

func (*EquipUUID) Descriptor deprecated

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

Deprecated: Use EquipUUID.ProtoReflect.Descriptor instead.

func (*EquipUUID) GetId

func (x *EquipUUID) GetId() string

func (*EquipUUID) ProtoMessage

func (*EquipUUID) ProtoMessage()

func (*EquipUUID) ProtoReflect

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

func (*EquipUUID) Reset

func (x *EquipUUID) Reset()

func (*EquipUUID) String

func (x *EquipUUID) String() string

type ListRequest

type ListRequest struct {
	Limit  uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() uint32

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() uint32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type Point

type Point struct {
	EquipUuid   string                 `protobuf:"bytes,1,opt,name=equipUuid,proto3" json:"equipUuid,omitempty"`
	Name        string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Enabled     bool                   `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	DateCreated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	LastUpdated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetDateCreated

func (x *Point) GetDateCreated() *timestamppb.Timestamp

func (*Point) GetEnabled

func (x *Point) GetEnabled() bool

func (*Point) GetEquipUuid

func (x *Point) GetEquipUuid() string

func (*Point) GetLastUpdated

func (x *Point) GetLastUpdated() *timestamppb.Timestamp

func (*Point) GetName

func (x *Point) GetName() string

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

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

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type PointList

type PointList struct {
	Points []*Point `protobuf:"bytes,1,rep,name=Points,proto3" json:"Points,omitempty"`
	// contains filtered or unexported fields
}

func (*PointList) Descriptor deprecated

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

Deprecated: Use PointList.ProtoReflect.Descriptor instead.

func (*PointList) GetPoints

func (x *PointList) GetPoints() []*Point

func (*PointList) ProtoMessage

func (*PointList) ProtoMessage()

func (*PointList) ProtoReflect

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

func (*PointList) Reset

func (x *PointList) Reset()

func (*PointList) String

func (x *PointList) String() string

type PointServiceClient

type PointServiceClient interface {
	Get(ctx context.Context, in *PointUUID, opts ...grpc.CallOption) (*Point, error)
	GetAll(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*PointList, error)
	Create(ctx context.Context, in *Point, opts ...grpc.CallOption) (*Point, error)
	Update(ctx context.Context, in *Point, opts ...grpc.CallOption) (*Point, error)
	Delete(ctx context.Context, in *PointUUID, opts ...grpc.CallOption) (*DeleteResponse, error)
	GetAllByEquipUUID(ctx context.Context, in *EquipUUID, opts ...grpc.CallOption) (*PointList, error)
}

PointServiceClient is the client API for PointService 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 PointServiceServer

type PointServiceServer interface {
	Get(context.Context, *PointUUID) (*Point, error)
	GetAll(context.Context, *ListRequest) (*PointList, error)
	Create(context.Context, *Point) (*Point, error)
	Update(context.Context, *Point) (*Point, error)
	Delete(context.Context, *PointUUID) (*DeleteResponse, error)
	GetAllByEquipUUID(context.Context, *EquipUUID) (*PointList, error)
	// contains filtered or unexported methods
}

PointServiceServer is the server API for PointService service. All implementations must embed UnimplementedPointServiceServer for forward compatibility

type PointUUID

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

func (*PointUUID) Descriptor deprecated

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

Deprecated: Use PointUUID.ProtoReflect.Descriptor instead.

func (*PointUUID) GetEquipUuid

func (x *PointUUID) GetEquipUuid() string

func (*PointUUID) GetName

func (x *PointUUID) GetName() string

func (*PointUUID) ProtoMessage

func (*PointUUID) ProtoMessage()

func (*PointUUID) ProtoReflect

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

func (*PointUUID) Reset

func (x *PointUUID) Reset()

func (*PointUUID) String

func (x *PointUUID) String() string

type UnimplementedEquipServiceServer

type UnimplementedEquipServiceServer struct {
}

UnimplementedEquipServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEquipServiceServer) Create

func (UnimplementedEquipServiceServer) Delete

func (UnimplementedEquipServiceServer) Get

func (UnimplementedEquipServiceServer) GetAll

func (UnimplementedEquipServiceServer) Update

type UnimplementedPointServiceServer

type UnimplementedPointServiceServer struct {
}

UnimplementedPointServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPointServiceServer) Create

func (UnimplementedPointServiceServer) Delete

func (UnimplementedPointServiceServer) Get

func (UnimplementedPointServiceServer) GetAll

func (UnimplementedPointServiceServer) GetAllByEquipUUID

func (UnimplementedPointServiceServer) Update

type UnsafeEquipServiceServer

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

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

type UnsafePointServiceServer

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

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

Jump to

Keyboard shortcuts

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