Documentation ¶
Index ¶
- Variables
- func RegisterTariffServiceServer(s grpc.ServiceRegistrar, srv TariffServiceServer)
- type Tariff
- func (t Tariff) Tariff(ctx context.Context, in *TariffRequest, opts ...grpc.CallOption) (*TariffResponse, error)
- func (t Tariff) TariffClose(ctx context.Context, in *TariffCloseRequest, opts ...grpc.CallOption) (*TariffCloseResponse, error)
- func (t Tariff) TariffCreate(ctx context.Context, in *TariffCreateRequest, opts ...grpc.CallOption) (*TariffCreateResponse, error)
- func (t Tariff) TariffUpdate(ctx context.Context, in *TariffUpdateRequest, opts ...grpc.CallOption) (*TariffUpdateResponse, error)
- func (t Tariff) Tariffs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TariffsResponse, error)
- type TariffCloseRequest
- func (*TariffCloseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TariffCloseRequest) GetTariff() *v1.Tariff
- func (*TariffCloseRequest) ProtoMessage()
- func (x *TariffCloseRequest) ProtoReflect() protoreflect.Message
- func (x *TariffCloseRequest) Reset()
- func (x *TariffCloseRequest) String() string
- type TariffCloseResponse
- func (*TariffCloseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TariffCloseResponse) GetTariff() *v1.Tariff
- func (*TariffCloseResponse) ProtoMessage()
- func (x *TariffCloseResponse) ProtoReflect() protoreflect.Message
- func (x *TariffCloseResponse) Reset()
- func (x *TariffCloseResponse) String() string
- type TariffCreateRequest
- func (*TariffCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TariffCreateRequest) GetTariff() *v1.Tariff
- func (*TariffCreateRequest) ProtoMessage()
- func (x *TariffCreateRequest) ProtoReflect() protoreflect.Message
- func (x *TariffCreateRequest) Reset()
- func (x *TariffCreateRequest) String() string
- type TariffCreateResponse
- func (*TariffCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TariffCreateResponse) GetTariff() *v1.Tariff
- func (*TariffCreateResponse) ProtoMessage()
- func (x *TariffCreateResponse) ProtoReflect() protoreflect.Message
- func (x *TariffCreateResponse) Reset()
- func (x *TariffCreateResponse) String() string
- type TariffRequest
- type TariffResponse
- type TariffServiceClient
- type TariffServiceServer
- type TariffUpdateRequest
- func (*TariffUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TariffUpdateRequest) GetTariff() *v1.Tariff
- func (*TariffUpdateRequest) ProtoMessage()
- func (x *TariffUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *TariffUpdateRequest) Reset()
- func (x *TariffUpdateRequest) String() string
- type TariffUpdateResponse
- func (*TariffUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TariffUpdateResponse) GetTariff() *v1.Tariff
- func (*TariffUpdateResponse) ProtoMessage()
- func (x *TariffUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *TariffUpdateResponse) Reset()
- func (x *TariffUpdateResponse) String() string
- type TariffsResponse
- type UnimplementedTariffServiceServer
- func (UnimplementedTariffServiceServer) Tariff(context.Context, *TariffRequest) (*TariffResponse, error)
- func (UnimplementedTariffServiceServer) TariffClose(context.Context, *TariffCloseRequest) (*TariffCloseResponse, error)
- func (UnimplementedTariffServiceServer) TariffCreate(context.Context, *TariffCreateRequest) (*TariffCreateResponse, error)
- func (UnimplementedTariffServiceServer) TariffUpdate(context.Context, *TariffUpdateRequest) (*TariffUpdateResponse, error)
- func (UnimplementedTariffServiceServer) Tariffs(context.Context, *emptypb.Empty) (*TariffsResponse, error)
- type UnsafeTariffServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_infrastructure_api_rpc_tariff_v1_tariff_rpc_proto protoreflect.FileDescriptor
var TariffService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "infrastructure.api.rpc.tariff.v1.TariffService", HandlerType: (*TariffServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Tariff", Handler: _TariffService_Tariff_Handler, }, { MethodName: "Tariffs", Handler: _TariffService_Tariffs_Handler, }, { MethodName: "TariffCreate", Handler: _TariffService_TariffCreate_Handler, }, { MethodName: "TariffUpdate", Handler: _TariffService_TariffUpdate_Handler, }, { MethodName: "TariffClose", Handler: _TariffService_TariffClose_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "infrastructure/api/rpc/tariff/v1/tariff_rpc.proto", }
TariffService_ServiceDesc is the grpc.ServiceDesc for TariffService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTariffServiceServer ¶
func RegisterTariffServiceServer(s grpc.ServiceRegistrar, srv TariffServiceServer)
Types ¶
type Tariff ¶
type Tariff struct{}
func (Tariff) Tariff ¶
func (t Tariff) Tariff(ctx context.Context, in *TariffRequest, opts ...grpc.CallOption) (*TariffResponse, error)
func (Tariff) TariffClose ¶
func (t Tariff) TariffClose(ctx context.Context, in *TariffCloseRequest, opts ...grpc.CallOption) (*TariffCloseResponse, error)
func (Tariff) TariffCreate ¶
func (t Tariff) TariffCreate(ctx context.Context, in *TariffCreateRequest, opts ...grpc.CallOption) (*TariffCreateResponse, error)
func (Tariff) TariffUpdate ¶
func (t Tariff) TariffUpdate(ctx context.Context, in *TariffUpdateRequest, opts ...grpc.CallOption) (*TariffUpdateResponse, error)
type TariffCloseRequest ¶
type TariffCloseRequest struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffCloseRequest) Descriptor
deprecated
func (*TariffCloseRequest) Descriptor() ([]byte, []int)
Deprecated: Use TariffCloseRequest.ProtoReflect.Descriptor instead.
func (*TariffCloseRequest) GetTariff ¶
func (x *TariffCloseRequest) GetTariff() *v1.Tariff
func (*TariffCloseRequest) ProtoMessage ¶
func (*TariffCloseRequest) ProtoMessage()
func (*TariffCloseRequest) ProtoReflect ¶
func (x *TariffCloseRequest) ProtoReflect() protoreflect.Message
func (*TariffCloseRequest) Reset ¶
func (x *TariffCloseRequest) Reset()
func (*TariffCloseRequest) String ¶
func (x *TariffCloseRequest) String() string
type TariffCloseResponse ¶
type TariffCloseResponse struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffCloseResponse) Descriptor
deprecated
func (*TariffCloseResponse) Descriptor() ([]byte, []int)
Deprecated: Use TariffCloseResponse.ProtoReflect.Descriptor instead.
func (*TariffCloseResponse) GetTariff ¶
func (x *TariffCloseResponse) GetTariff() *v1.Tariff
func (*TariffCloseResponse) ProtoMessage ¶
func (*TariffCloseResponse) ProtoMessage()
func (*TariffCloseResponse) ProtoReflect ¶
func (x *TariffCloseResponse) ProtoReflect() protoreflect.Message
func (*TariffCloseResponse) Reset ¶
func (x *TariffCloseResponse) Reset()
func (*TariffCloseResponse) String ¶
func (x *TariffCloseResponse) String() string
type TariffCreateRequest ¶
type TariffCreateRequest struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffCreateRequest) Descriptor
deprecated
func (*TariffCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TariffCreateRequest.ProtoReflect.Descriptor instead.
func (*TariffCreateRequest) GetTariff ¶
func (x *TariffCreateRequest) GetTariff() *v1.Tariff
func (*TariffCreateRequest) ProtoMessage ¶
func (*TariffCreateRequest) ProtoMessage()
func (*TariffCreateRequest) ProtoReflect ¶
func (x *TariffCreateRequest) ProtoReflect() protoreflect.Message
func (*TariffCreateRequest) Reset ¶
func (x *TariffCreateRequest) Reset()
func (*TariffCreateRequest) String ¶
func (x *TariffCreateRequest) String() string
type TariffCreateResponse ¶
type TariffCreateResponse struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffCreateResponse) Descriptor
deprecated
func (*TariffCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TariffCreateResponse.ProtoReflect.Descriptor instead.
func (*TariffCreateResponse) GetTariff ¶
func (x *TariffCreateResponse) GetTariff() *v1.Tariff
func (*TariffCreateResponse) ProtoMessage ¶
func (*TariffCreateResponse) ProtoMessage()
func (*TariffCreateResponse) ProtoReflect ¶
func (x *TariffCreateResponse) ProtoReflect() protoreflect.Message
func (*TariffCreateResponse) Reset ¶
func (x *TariffCreateResponse) Reset()
func (*TariffCreateResponse) String ¶
func (x *TariffCreateResponse) String() string
type TariffRequest ¶
type TariffRequest struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffRequest) Descriptor
deprecated
func (*TariffRequest) Descriptor() ([]byte, []int)
Deprecated: Use TariffRequest.ProtoReflect.Descriptor instead.
func (*TariffRequest) GetTariff ¶
func (x *TariffRequest) GetTariff() *v1.Tariff
func (*TariffRequest) ProtoMessage ¶
func (*TariffRequest) ProtoMessage()
func (*TariffRequest) ProtoReflect ¶
func (x *TariffRequest) ProtoReflect() protoreflect.Message
func (*TariffRequest) Reset ¶
func (x *TariffRequest) Reset()
func (*TariffRequest) String ¶
func (x *TariffRequest) String() string
type TariffResponse ¶
type TariffResponse struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffResponse) Descriptor
deprecated
func (*TariffResponse) Descriptor() ([]byte, []int)
Deprecated: Use TariffResponse.ProtoReflect.Descriptor instead.
func (*TariffResponse) GetTariff ¶
func (x *TariffResponse) GetTariff() *v1.Tariff
func (*TariffResponse) ProtoMessage ¶
func (*TariffResponse) ProtoMessage()
func (*TariffResponse) ProtoReflect ¶
func (x *TariffResponse) ProtoReflect() protoreflect.Message
func (*TariffResponse) Reset ¶
func (x *TariffResponse) Reset()
func (*TariffResponse) String ¶
func (x *TariffResponse) String() string
type TariffServiceClient ¶
type TariffServiceClient interface { Tariff(ctx context.Context, in *TariffRequest, opts ...grpc.CallOption) (*TariffResponse, error) Tariffs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TariffsResponse, error) TariffCreate(ctx context.Context, in *TariffCreateRequest, opts ...grpc.CallOption) (*TariffCreateResponse, error) TariffUpdate(ctx context.Context, in *TariffUpdateRequest, opts ...grpc.CallOption) (*TariffUpdateResponse, error) TariffClose(ctx context.Context, in *TariffCloseRequest, opts ...grpc.CallOption) (*TariffCloseResponse, error) }
TariffServiceClient is the client API for TariffService 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 NewTariffServiceClient ¶
func NewTariffServiceClient(cc grpc.ClientConnInterface) TariffServiceClient
type TariffServiceServer ¶
type TariffServiceServer interface { Tariff(context.Context, *TariffRequest) (*TariffResponse, error) Tariffs(context.Context, *emptypb.Empty) (*TariffsResponse, error) TariffCreate(context.Context, *TariffCreateRequest) (*TariffCreateResponse, error) TariffUpdate(context.Context, *TariffUpdateRequest) (*TariffUpdateResponse, error) TariffClose(context.Context, *TariffCloseRequest) (*TariffCloseResponse, error) // contains filtered or unexported methods }
TariffServiceServer is the server API for TariffService service. All implementations must embed UnimplementedTariffServiceServer for forward compatibility
type TariffUpdateRequest ¶
type TariffUpdateRequest struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffUpdateRequest) Descriptor
deprecated
func (*TariffUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TariffUpdateRequest.ProtoReflect.Descriptor instead.
func (*TariffUpdateRequest) GetTariff ¶
func (x *TariffUpdateRequest) GetTariff() *v1.Tariff
func (*TariffUpdateRequest) ProtoMessage ¶
func (*TariffUpdateRequest) ProtoMessage()
func (*TariffUpdateRequest) ProtoReflect ¶
func (x *TariffUpdateRequest) ProtoReflect() protoreflect.Message
func (*TariffUpdateRequest) Reset ¶
func (x *TariffUpdateRequest) Reset()
func (*TariffUpdateRequest) String ¶
func (x *TariffUpdateRequest) String() string
type TariffUpdateResponse ¶
type TariffUpdateResponse struct { Tariff *v1.Tariff `protobuf:"bytes,1,opt,name=tariff,proto3" json:"tariff,omitempty"` // contains filtered or unexported fields }
func (*TariffUpdateResponse) Descriptor
deprecated
func (*TariffUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TariffUpdateResponse.ProtoReflect.Descriptor instead.
func (*TariffUpdateResponse) GetTariff ¶
func (x *TariffUpdateResponse) GetTariff() *v1.Tariff
func (*TariffUpdateResponse) ProtoMessage ¶
func (*TariffUpdateResponse) ProtoMessage()
func (*TariffUpdateResponse) ProtoReflect ¶
func (x *TariffUpdateResponse) ProtoReflect() protoreflect.Message
func (*TariffUpdateResponse) Reset ¶
func (x *TariffUpdateResponse) Reset()
func (*TariffUpdateResponse) String ¶
func (x *TariffUpdateResponse) String() string
type TariffsResponse ¶
type TariffsResponse struct { List []*v1.Tariff `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*TariffsResponse) Descriptor
deprecated
func (*TariffsResponse) Descriptor() ([]byte, []int)
Deprecated: Use TariffsResponse.ProtoReflect.Descriptor instead.
func (*TariffsResponse) GetList ¶
func (x *TariffsResponse) GetList() []*v1.Tariff
func (*TariffsResponse) ProtoMessage ¶
func (*TariffsResponse) ProtoMessage()
func (*TariffsResponse) ProtoReflect ¶
func (x *TariffsResponse) ProtoReflect() protoreflect.Message
func (*TariffsResponse) Reset ¶
func (x *TariffsResponse) Reset()
func (*TariffsResponse) String ¶
func (x *TariffsResponse) String() string
type UnimplementedTariffServiceServer ¶
type UnimplementedTariffServiceServer struct { }
UnimplementedTariffServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTariffServiceServer) Tariff ¶
func (UnimplementedTariffServiceServer) Tariff(context.Context, *TariffRequest) (*TariffResponse, error)
func (UnimplementedTariffServiceServer) TariffClose ¶
func (UnimplementedTariffServiceServer) TariffClose(context.Context, *TariffCloseRequest) (*TariffCloseResponse, error)
func (UnimplementedTariffServiceServer) TariffCreate ¶
func (UnimplementedTariffServiceServer) TariffCreate(context.Context, *TariffCreateRequest) (*TariffCreateResponse, error)
func (UnimplementedTariffServiceServer) TariffUpdate ¶
func (UnimplementedTariffServiceServer) TariffUpdate(context.Context, *TariffUpdateRequest) (*TariffUpdateResponse, error)
func (UnimplementedTariffServiceServer) Tariffs ¶
func (UnimplementedTariffServiceServer) Tariffs(context.Context, *emptypb.Empty) (*TariffsResponse, error)
type UnsafeTariffServiceServer ¶
type UnsafeTariffServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTariffServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TariffServiceServer will result in compilation errors.