Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterVehicleServer(s grpc.ServiceRegistrar, srv VehicleServer)
- func RegisterVictronServer(s grpc.ServiceRegistrar, srv VictronServer)
- type AuthClient
- type AuthReply
- func (*AuthReply) Descriptor() ([]byte, []int)deprecated
- func (x *AuthReply) GetAuthorized() bool
- func (x *AuthReply) GetExpiresAt() *timestamppb.Timestamp
- func (x *AuthReply) GetSubject() string
- func (*AuthReply) ProtoMessage()
- func (x *AuthReply) ProtoReflect() protoreflect.Message
- func (x *AuthReply) Reset()
- func (x *AuthReply) String() string
- type AuthRequest
- type AuthServer
- type NewReply
- type NewRequest
- func (*NewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewRequest) GetConfig() map[string]string
- func (x *NewRequest) GetToken() string
- func (x *NewRequest) GetType() string
- func (*NewRequest) ProtoMessage()
- func (x *NewRequest) ProtoReflect() protoreflect.Message
- func (x *NewRequest) Reset()
- func (x *NewRequest) String() string
- type SoCReply
- type SoCRequest
- type UnimplementedAuthServer
- type UnimplementedVehicleServer
- type UnimplementedVictronServer
- type UnsafeAuthServer
- type UnsafeVehicleServer
- type UnsafeVictronServer
- type VehicleClient
- type VehicleServer
- type VictronClient
- type VictronReply
- func (*VictronReply) Descriptor() ([]byte, []int)deprecated
- func (x *VictronReply) GetAuthorized() bool
- func (x *VictronReply) GetSubject() string
- func (*VictronReply) ProtoMessage()
- func (x *VictronReply) ProtoReflect() protoreflect.Message
- func (x *VictronReply) Reset()
- func (x *VictronReply) String() string
- type VictronRequest
- func (*VictronRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VictronRequest) GetBoard() string
- func (x *VictronRequest) GetProductId() string
- func (x *VictronRequest) GetSerial() string
- func (x *VictronRequest) GetVrmId() string
- func (*VictronRequest) ProtoMessage()
- func (x *VictronRequest) ProtoReflect() protoreflect.Message
- func (x *VictronRequest) Reset()
- func (x *VictronRequest) String() string
- type VictronServer
Constants ¶
const (
Victron_IsValidDevice_FullMethodName = "/Victron/IsValidDevice"
)
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsAuthorized", Handler: _Auth_IsAuthorized_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_auth_proto protoreflect.FileDescriptor
var File_proto_vehicle_proto protoreflect.FileDescriptor
var File_proto_victron_proto protoreflect.FileDescriptor
var Vehicle_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Vehicle", HandlerType: (*VehicleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "New", Handler: _Vehicle_New_Handler, }, { MethodName: "SoC", Handler: _Vehicle_SoC_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/vehicle.proto", }
Vehicle_ServiceDesc is the grpc.ServiceDesc for Vehicle service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Victron_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Victron", HandlerType: (*VictronServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsValidDevice", Handler: _Victron_IsValidDevice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/victron.proto", }
Victron_ServiceDesc is the grpc.ServiceDesc for Victron service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterVehicleServer ¶
func RegisterVehicleServer(s grpc.ServiceRegistrar, srv VehicleServer)
func RegisterVictronServer ¶
func RegisterVictronServer(s grpc.ServiceRegistrar, srv VictronServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
IsAuthorized(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthReply, error)
}
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthReply ¶
type AuthReply struct { Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*AuthReply) Descriptor
deprecated
func (*AuthReply) GetAuthorized ¶
func (*AuthReply) GetExpiresAt ¶
func (x *AuthReply) GetExpiresAt() *timestamppb.Timestamp
func (*AuthReply) GetSubject ¶
func (*AuthReply) ProtoMessage ¶
func (*AuthReply) ProtoMessage()
func (*AuthReply) ProtoReflect ¶
func (x *AuthReply) ProtoReflect() protoreflect.Message
type AuthRequest ¶
type AuthRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetToken ¶
func (x *AuthRequest) GetToken() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
type AuthServer ¶
type AuthServer interface { IsAuthorized(context.Context, *AuthRequest) (*AuthReply, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type NewReply ¶
type NewReply struct { VehicleId int64 `protobuf:"varint,1,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"` // contains filtered or unexported fields }
func (*NewReply) Descriptor
deprecated
func (*NewReply) GetVehicleId ¶
func (*NewReply) ProtoMessage ¶
func (*NewReply) ProtoMessage()
func (*NewReply) ProtoReflect ¶
func (x *NewReply) ProtoReflect() protoreflect.Message
type NewRequest ¶
type NewRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Config map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NewRequest) Descriptor
deprecated
func (*NewRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewRequest.ProtoReflect.Descriptor instead.
func (*NewRequest) GetConfig ¶
func (x *NewRequest) GetConfig() map[string]string
func (*NewRequest) GetToken ¶
func (x *NewRequest) GetToken() string
func (*NewRequest) GetType ¶
func (x *NewRequest) GetType() string
func (*NewRequest) ProtoMessage ¶
func (*NewRequest) ProtoMessage()
func (*NewRequest) ProtoReflect ¶
func (x *NewRequest) ProtoReflect() protoreflect.Message
func (*NewRequest) Reset ¶
func (x *NewRequest) Reset()
func (*NewRequest) String ¶
func (x *NewRequest) String() string
type SoCReply ¶
type SoCReply struct { Soc float64 `protobuf:"fixed64,1,opt,name=soc,proto3" json:"soc,omitempty"` // contains filtered or unexported fields }
func (*SoCReply) Descriptor
deprecated
func (*SoCReply) ProtoMessage ¶
func (*SoCReply) ProtoMessage()
func (*SoCReply) ProtoReflect ¶
func (x *SoCReply) ProtoReflect() protoreflect.Message
type SoCRequest ¶
type SoCRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` VehicleId int64 `protobuf:"varint,2,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"` // contains filtered or unexported fields }
func (*SoCRequest) Descriptor
deprecated
func (*SoCRequest) Descriptor() ([]byte, []int)
Deprecated: Use SoCRequest.ProtoReflect.Descriptor instead.
func (*SoCRequest) GetToken ¶
func (x *SoCRequest) GetToken() string
func (*SoCRequest) GetVehicleId ¶
func (x *SoCRequest) GetVehicleId() int64
func (*SoCRequest) ProtoMessage ¶
func (*SoCRequest) ProtoMessage()
func (*SoCRequest) ProtoReflect ¶
func (x *SoCRequest) ProtoReflect() protoreflect.Message
func (*SoCRequest) Reset ¶
func (x *SoCRequest) Reset()
func (*SoCRequest) String ¶
func (x *SoCRequest) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) IsAuthorized ¶
func (UnimplementedAuthServer) IsAuthorized(context.Context, *AuthRequest) (*AuthReply, error)
type UnimplementedVehicleServer ¶
type UnimplementedVehicleServer struct { }
UnimplementedVehicleServer must be embedded to have forward compatible implementations.
func (UnimplementedVehicleServer) New ¶
func (UnimplementedVehicleServer) New(context.Context, *NewRequest) (*NewReply, error)
func (UnimplementedVehicleServer) SoC ¶
func (UnimplementedVehicleServer) SoC(context.Context, *SoCRequest) (*SoCReply, error)
type UnimplementedVictronServer ¶
type UnimplementedVictronServer struct { }
UnimplementedVictronServer must be embedded to have forward compatible implementations.
func (UnimplementedVictronServer) IsValidDevice ¶
func (UnimplementedVictronServer) IsValidDevice(context.Context, *VictronRequest) (*VictronReply, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeVehicleServer ¶
type UnsafeVehicleServer interface {
// contains filtered or unexported methods
}
UnsafeVehicleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VehicleServer will result in compilation errors.
type UnsafeVictronServer ¶
type UnsafeVictronServer interface {
// contains filtered or unexported methods
}
UnsafeVictronServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VictronServer will result in compilation errors.
type VehicleClient ¶
type VehicleClient interface { New(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*NewReply, error) SoC(ctx context.Context, in *SoCRequest, opts ...grpc.CallOption) (*SoCReply, error) }
VehicleClient is the client API for Vehicle 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 NewVehicleClient ¶
func NewVehicleClient(cc grpc.ClientConnInterface) VehicleClient
type VehicleServer ¶
type VehicleServer interface { New(context.Context, *NewRequest) (*NewReply, error) SoC(context.Context, *SoCRequest) (*SoCReply, error) // contains filtered or unexported methods }
VehicleServer is the server API for Vehicle service. All implementations must embed UnimplementedVehicleServer for forward compatibility
type VictronClient ¶
type VictronClient interface {
IsValidDevice(ctx context.Context, in *VictronRequest, opts ...grpc.CallOption) (*VictronReply, error)
}
VictronClient is the client API for Victron 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 NewVictronClient ¶
func NewVictronClient(cc grpc.ClientConnInterface) VictronClient
type VictronReply ¶
type VictronReply struct { Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // contains filtered or unexported fields }
func (*VictronReply) Descriptor
deprecated
func (*VictronReply) Descriptor() ([]byte, []int)
Deprecated: Use VictronReply.ProtoReflect.Descriptor instead.
func (*VictronReply) GetAuthorized ¶
func (x *VictronReply) GetAuthorized() bool
func (*VictronReply) GetSubject ¶
func (x *VictronReply) GetSubject() string
func (*VictronReply) ProtoMessage ¶
func (*VictronReply) ProtoMessage()
func (*VictronReply) ProtoReflect ¶
func (x *VictronReply) ProtoReflect() protoreflect.Message
func (*VictronReply) Reset ¶
func (x *VictronReply) Reset()
func (*VictronReply) String ¶
func (x *VictronReply) String() string
type VictronRequest ¶
type VictronRequest struct { ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"` VrmId string `protobuf:"bytes,2,opt,name=vrmId,proto3" json:"vrmId,omitempty"` Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"` Board string `protobuf:"bytes,4,opt,name=board,proto3" json:"board,omitempty"` // contains filtered or unexported fields }
func (*VictronRequest) Descriptor
deprecated
func (*VictronRequest) Descriptor() ([]byte, []int)
Deprecated: Use VictronRequest.ProtoReflect.Descriptor instead.
func (*VictronRequest) GetBoard ¶
func (x *VictronRequest) GetBoard() string
func (*VictronRequest) GetProductId ¶
func (x *VictronRequest) GetProductId() string
func (*VictronRequest) GetSerial ¶
func (x *VictronRequest) GetSerial() string
func (*VictronRequest) GetVrmId ¶
func (x *VictronRequest) GetVrmId() string
func (*VictronRequest) ProtoMessage ¶
func (*VictronRequest) ProtoMessage()
func (*VictronRequest) ProtoReflect ¶
func (x *VictronRequest) ProtoReflect() protoreflect.Message
func (*VictronRequest) Reset ¶
func (x *VictronRequest) Reset()
func (*VictronRequest) String ¶
func (x *VictronRequest) String() string
type VictronServer ¶
type VictronServer interface { IsValidDevice(context.Context, *VictronRequest) (*VictronReply, error) // contains filtered or unexported methods }
VictronServer is the server API for Victron service. All implementations must embed UnimplementedVictronServer for forward compatibility