Documentation ¶
Index ¶
- Variables
- func RegisterVOxOVServer(s grpc.ServiceRegistrar, srv VOxOVServer)
- type AuthDeviceReply
- func (*AuthDeviceReply) Descriptor() ([]byte, []int)deprecated
- func (x *AuthDeviceReply) GetDid() int64
- func (x *AuthDeviceReply) GetPid() int64
- func (*AuthDeviceReply) ProtoMessage()
- func (x *AuthDeviceReply) ProtoReflect() protoreflect.Message
- func (x *AuthDeviceReply) Reset()
- func (x *AuthDeviceReply) String() string
- type AuthDeviceRequest
- func (*AuthDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthDeviceRequest) GetDtoken() []byte
- func (x *AuthDeviceRequest) GetToken() []byte
- func (*AuthDeviceRequest) ProtoMessage()
- func (x *AuthDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *AuthDeviceRequest) Reset()
- func (x *AuthDeviceRequest) String() string
- type AuthenticateReply
- func (*AuthenticateReply) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateReply) GetMsg() string
- func (x *AuthenticateReply) GetTel() string
- func (*AuthenticateReply) ProtoMessage()
- func (x *AuthenticateReply) ProtoReflect() protoreflect.Message
- func (x *AuthenticateReply) Reset()
- func (x *AuthenticateReply) String() string
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetToken() []byte
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type CreateSessionReply
- func (*CreateSessionReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionReply) GetApiVersion() int32
- func (x *CreateSessionReply) GetToken() []byte
- func (*CreateSessionReply) ProtoMessage()
- func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
- func (x *CreateSessionReply) Reset()
- func (x *CreateSessionReply) String() string
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetApiVersion() int32
- func (x *CreateSessionRequest) GetTtl() int64
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetCreated() int64
- func (x *Device) GetDid() int64
- func (x *Device) GetDinfo() string
- func (x *Device) GetDname() string
- func (x *Device) GetDtoken() []byte
- func (x *Device) GetLastIn() int64
- func (x *Device) GetPid() int64
- func (x *Device) GetToken() []byte
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type ListDeviceReply
- type ListDeviceRequest
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetBalance() int64
- func (x *Person) GetCreated() int64
- func (x *Person) GetDlimit() int32
- func (x *Person) GetHid() int64
- func (x *Person) GetIdDoc() string
- func (x *Person) GetLastIn() int64
- func (x *Person) GetPhone() string
- func (x *Person) GetPid() int64
- func (x *Person) GetPname() string
- func (x *Person) GetToken() []byte
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type UnimplementedVOxOVServer
- func (UnimplementedVOxOVServer) AuthDevice(context.Context, *AuthDeviceRequest) (*AuthDeviceReply, error)
- func (UnimplementedVOxOVServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateReply, error)
- func (UnimplementedVOxOVServer) CreateDevice(context.Context, *Device) (*Device, error)
- func (UnimplementedVOxOVServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error)
- func (UnimplementedVOxOVServer) DeleteDevice(context.Context, *Device) (*Device, error)
- func (UnimplementedVOxOVServer) ListDevice(context.Context, *ListDeviceRequest) (*ListDeviceReply, error)
- func (UnimplementedVOxOVServer) ReadDevice(context.Context, *Device) (*Device, error)
- func (UnimplementedVOxOVServer) ReadPerson(context.Context, *Person) (*Person, error)
- func (UnimplementedVOxOVServer) UpdateDevice(context.Context, *Device) (*Device, error)
- func (UnimplementedVOxOVServer) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error)
- func (UnimplementedVOxOVServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIReply, error)
- type UnsafeVOxOVServer
- type UpdateSessionReply
- type UpdateSessionRequest
- func (*UpdateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSessionRequest) GetToken() []byte
- func (x *UpdateSessionRequest) GetTtl() int64
- func (*UpdateSessionRequest) ProtoMessage()
- func (x *UpdateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSessionRequest) Reset()
- func (x *UpdateSessionRequest) String() string
- type VOxOVClient
- type VOxOVServer
- type WhoAmIReply
- type WhoAmIRequest
- func (*WhoAmIRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WhoAmIRequest) GetMsg() string
- func (x *WhoAmIRequest) GetTel() string
- func (x *WhoAmIRequest) GetToken() []byte
- func (*WhoAmIRequest) ProtoMessage()
- func (x *WhoAmIRequest) ProtoReflect() protoreflect.Message
- func (x *WhoAmIRequest) Reset()
- func (x *WhoAmIRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_voxov_proto protoreflect.FileDescriptor
var VOxOV_ServiceDesc = grpc.ServiceDesc{ ServiceName: "voxov.VOxOV", HandlerType: (*VOxOVServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSession", Handler: _VOxOV_CreateSession_Handler, }, { MethodName: "UpdateSession", Handler: _VOxOV_UpdateSession_Handler, }, { MethodName: "Authenticate", Handler: _VOxOV_Authenticate_Handler, }, { MethodName: "WhoAmI", Handler: _VOxOV_WhoAmI_Handler, }, { MethodName: "CreateDevice", Handler: _VOxOV_CreateDevice_Handler, }, { MethodName: "ReadDevice", Handler: _VOxOV_ReadDevice_Handler, }, { MethodName: "UpdateDevice", Handler: _VOxOV_UpdateDevice_Handler, }, { MethodName: "DeleteDevice", Handler: _VOxOV_DeleteDevice_Handler, }, { MethodName: "ListDevice", Handler: _VOxOV_ListDevice_Handler, }, { MethodName: "AuthDevice", Handler: _VOxOV_AuthDevice_Handler, }, { MethodName: "ReadPerson", Handler: _VOxOV_ReadPerson_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "voxov.proto", }
VOxOV_ServiceDesc is the grpc.ServiceDesc for VOxOV service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVOxOVServer ¶
func RegisterVOxOVServer(s grpc.ServiceRegistrar, srv VOxOVServer)
Types ¶
type AuthDeviceReply ¶
type AuthDeviceReply struct { Did int64 `protobuf:"varint,1,opt,name=did,proto3" json:"did,omitempty"` Pid int64 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*AuthDeviceReply) Descriptor
deprecated
func (*AuthDeviceReply) Descriptor() ([]byte, []int)
Deprecated: Use AuthDeviceReply.ProtoReflect.Descriptor instead.
func (*AuthDeviceReply) GetDid ¶
func (x *AuthDeviceReply) GetDid() int64
func (*AuthDeviceReply) GetPid ¶
func (x *AuthDeviceReply) GetPid() int64
func (*AuthDeviceReply) ProtoMessage ¶
func (*AuthDeviceReply) ProtoMessage()
func (*AuthDeviceReply) ProtoReflect ¶
func (x *AuthDeviceReply) ProtoReflect() protoreflect.Message
func (*AuthDeviceReply) Reset ¶
func (x *AuthDeviceReply) Reset()
func (*AuthDeviceReply) String ¶
func (x *AuthDeviceReply) String() string
type AuthDeviceRequest ¶
type AuthDeviceRequest struct { Dtoken []byte `protobuf:"bytes,1,opt,name=dtoken,proto3" json:"dtoken,omitempty"` Token []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthDeviceRequest) Descriptor
deprecated
func (*AuthDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthDeviceRequest.ProtoReflect.Descriptor instead.
func (*AuthDeviceRequest) GetDtoken ¶
func (x *AuthDeviceRequest) GetDtoken() []byte
func (*AuthDeviceRequest) GetToken ¶
func (x *AuthDeviceRequest) GetToken() []byte
func (*AuthDeviceRequest) ProtoMessage ¶
func (*AuthDeviceRequest) ProtoMessage()
func (*AuthDeviceRequest) ProtoReflect ¶
func (x *AuthDeviceRequest) ProtoReflect() protoreflect.Message
func (*AuthDeviceRequest) Reset ¶
func (x *AuthDeviceRequest) Reset()
func (*AuthDeviceRequest) String ¶
func (x *AuthDeviceRequest) String() string
type AuthenticateReply ¶
type AuthenticateReply struct { Tel string `protobuf:"bytes,1,opt,name=tel,proto3" json:"tel,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateReply) Descriptor
deprecated
func (*AuthenticateReply) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateReply.ProtoReflect.Descriptor instead.
func (*AuthenticateReply) GetMsg ¶
func (x *AuthenticateReply) GetMsg() string
func (*AuthenticateReply) GetTel ¶
func (x *AuthenticateReply) GetTel() string
func (*AuthenticateReply) ProtoMessage ¶
func (*AuthenticateReply) ProtoMessage()
func (*AuthenticateReply) ProtoReflect ¶
func (x *AuthenticateReply) ProtoReflect() protoreflect.Message
func (*AuthenticateReply) Reset ¶
func (x *AuthenticateReply) Reset()
func (*AuthenticateReply) String ¶
func (x *AuthenticateReply) String() string
type AuthenticateRequest ¶
type AuthenticateRequest struct { Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetToken ¶
func (x *AuthenticateRequest) GetToken() []byte
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type CreateSessionReply ¶
type CreateSessionReply struct { ApiVersion int32 `protobuf:"varint,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Token []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionReply) Descriptor
deprecated
func (*CreateSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionReply.ProtoReflect.Descriptor instead.
func (*CreateSessionReply) GetApiVersion ¶
func (x *CreateSessionReply) GetApiVersion() int32
func (*CreateSessionReply) GetToken ¶
func (x *CreateSessionReply) GetToken() []byte
func (*CreateSessionReply) ProtoMessage ¶
func (*CreateSessionReply) ProtoMessage()
func (*CreateSessionReply) ProtoReflect ¶
func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
func (*CreateSessionReply) Reset ¶
func (x *CreateSessionReply) Reset()
func (*CreateSessionReply) String ¶
func (x *CreateSessionReply) String() string
type CreateSessionRequest ¶
type CreateSessionRequest struct { ApiVersion int32 `protobuf:"varint,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` Ttl int64 `protobuf:"varint,2,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetApiVersion ¶
func (x *CreateSessionRequest) GetApiVersion() int32
func (*CreateSessionRequest) GetTtl ¶
func (x *CreateSessionRequest) GetTtl() int64
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
type Device ¶
type Device struct { Did int64 `protobuf:"varint,1,opt,name=did,proto3" json:"did,omitempty"` Dtoken []byte `protobuf:"bytes,2,opt,name=dtoken,proto3" json:"dtoken,omitempty"` Dname string `protobuf:"bytes,3,opt,name=dname,proto3" json:"dname,omitempty"` Dinfo string `protobuf:"bytes,4,opt,name=dinfo,proto3" json:"dinfo,omitempty"` Pid int64 `protobuf:"varint,5,opt,name=pid,proto3" json:"pid,omitempty"` Created int64 `protobuf:"varint,6,opt,name=created,proto3" json:"created,omitempty"` // UTC UnixMicro LastIn int64 `protobuf:"varint,7,opt,name=last_in,json=lastIn,proto3" json:"last_in,omitempty"` Token []byte `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetCreated ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type ListDeviceReply ¶
type ListDeviceReply struct { Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` // contains filtered or unexported fields }
func (*ListDeviceReply) Descriptor
deprecated
func (*ListDeviceReply) Descriptor() ([]byte, []int)
Deprecated: Use ListDeviceReply.ProtoReflect.Descriptor instead.
func (*ListDeviceReply) GetDevices ¶
func (x *ListDeviceReply) GetDevices() []*Device
func (*ListDeviceReply) ProtoMessage ¶
func (*ListDeviceReply) ProtoMessage()
func (*ListDeviceReply) ProtoReflect ¶
func (x *ListDeviceReply) ProtoReflect() protoreflect.Message
func (*ListDeviceReply) Reset ¶
func (x *ListDeviceReply) Reset()
func (*ListDeviceReply) String ¶
func (x *ListDeviceReply) String() string
type ListDeviceRequest ¶
type ListDeviceRequest struct { Token []byte `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ListDeviceRequest) Descriptor
deprecated
func (*ListDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDeviceRequest.ProtoReflect.Descriptor instead.
func (*ListDeviceRequest) GetToken ¶
func (x *ListDeviceRequest) GetToken() []byte
func (*ListDeviceRequest) ProtoMessage ¶
func (*ListDeviceRequest) ProtoMessage()
func (*ListDeviceRequest) ProtoReflect ¶
func (x *ListDeviceRequest) ProtoReflect() protoreflect.Message
func (*ListDeviceRequest) Reset ¶
func (x *ListDeviceRequest) Reset()
func (*ListDeviceRequest) String ¶
func (x *ListDeviceRequest) String() string
type Person ¶
type Person struct { Pid int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Hid int64 `protobuf:"varint,2,opt,name=hid,proto3" json:"hid,omitempty"` Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` Pname string `protobuf:"bytes,5,opt,name=pname,proto3" json:"pname,omitempty"` IdDoc string `protobuf:"bytes,6,opt,name=id_doc,json=idDoc,proto3" json:"id_doc,omitempty"` Dlimit int32 `protobuf:"varint,7,opt,name=dlimit,proto3" json:"dlimit,omitempty"` Created int64 `protobuf:"varint,8,opt,name=created,proto3" json:"created,omitempty"` LastIn int64 `protobuf:"varint,9,opt,name=last_in,json=lastIn,proto3" json:"last_in,omitempty"` Token []byte `protobuf:"bytes,10,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetBalance ¶
func (*Person) GetCreated ¶
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type UnimplementedVOxOVServer ¶
type UnimplementedVOxOVServer struct { }
UnimplementedVOxOVServer must be embedded to have forward compatible implementations.
func (UnimplementedVOxOVServer) AuthDevice ¶
func (UnimplementedVOxOVServer) AuthDevice(context.Context, *AuthDeviceRequest) (*AuthDeviceReply, error)
func (UnimplementedVOxOVServer) Authenticate ¶
func (UnimplementedVOxOVServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateReply, error)
func (UnimplementedVOxOVServer) CreateDevice ¶
func (UnimplementedVOxOVServer) CreateSession ¶
func (UnimplementedVOxOVServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error)
func (UnimplementedVOxOVServer) DeleteDevice ¶
func (UnimplementedVOxOVServer) ListDevice ¶
func (UnimplementedVOxOVServer) ListDevice(context.Context, *ListDeviceRequest) (*ListDeviceReply, error)
func (UnimplementedVOxOVServer) ReadDevice ¶
func (UnimplementedVOxOVServer) ReadPerson ¶
func (UnimplementedVOxOVServer) UpdateDevice ¶
func (UnimplementedVOxOVServer) UpdateSession ¶
func (UnimplementedVOxOVServer) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error)
func (UnimplementedVOxOVServer) WhoAmI ¶
func (UnimplementedVOxOVServer) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIReply, error)
type UnsafeVOxOVServer ¶
type UnsafeVOxOVServer interface {
// contains filtered or unexported methods
}
UnsafeVOxOVServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VOxOVServer will result in compilation errors.
type UpdateSessionReply ¶
type UpdateSessionReply struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*UpdateSessionReply) Descriptor
deprecated
func (*UpdateSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSessionReply.ProtoReflect.Descriptor instead.
func (*UpdateSessionReply) GetOk ¶
func (x *UpdateSessionReply) GetOk() bool
func (*UpdateSessionReply) ProtoMessage ¶
func (*UpdateSessionReply) ProtoMessage()
func (*UpdateSessionReply) ProtoReflect ¶
func (x *UpdateSessionReply) ProtoReflect() protoreflect.Message
func (*UpdateSessionReply) Reset ¶
func (x *UpdateSessionReply) Reset()
func (*UpdateSessionReply) String ¶
func (x *UpdateSessionReply) String() string
type UpdateSessionRequest ¶
type UpdateSessionRequest struct { Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` Token []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UpdateSessionRequest) Descriptor
deprecated
func (*UpdateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSessionRequest.ProtoReflect.Descriptor instead.
func (*UpdateSessionRequest) GetToken ¶
func (x *UpdateSessionRequest) GetToken() []byte
func (*UpdateSessionRequest) GetTtl ¶
func (x *UpdateSessionRequest) GetTtl() int64
func (*UpdateSessionRequest) ProtoMessage ¶
func (*UpdateSessionRequest) ProtoMessage()
func (*UpdateSessionRequest) ProtoReflect ¶
func (x *UpdateSessionRequest) ProtoReflect() protoreflect.Message
func (*UpdateSessionRequest) Reset ¶
func (x *UpdateSessionRequest) Reset()
func (*UpdateSessionRequest) String ¶
func (x *UpdateSessionRequest) String() string
type VOxOVClient ¶
type VOxOVClient interface { // gate session CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionReply, error) UpdateSession(ctx context.Context, in *UpdateSessionRequest, opts ...grpc.CallOption) (*UpdateSessionReply, error) // auth authenticate Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateReply, error) WhoAmI(ctx context.Context, in *WhoAmIRequest, opts ...grpc.CallOption) (*WhoAmIReply, error) // auth device CreateDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error) ReadDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error) UpdateDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error) DeleteDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error) ListDevice(ctx context.Context, in *ListDeviceRequest, opts ...grpc.CallOption) (*ListDeviceReply, error) AuthDevice(ctx context.Context, in *AuthDeviceRequest, opts ...grpc.CallOption) (*AuthDeviceReply, error) // person read ReadPerson(ctx context.Context, in *Person, opts ...grpc.CallOption) (*Person, error) }
VOxOVClient is the client API for VOxOV 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 NewVOxOVClient ¶
func NewVOxOVClient(cc grpc.ClientConnInterface) VOxOVClient
type VOxOVServer ¶
type VOxOVServer interface { // gate session CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionReply, error) UpdateSession(context.Context, *UpdateSessionRequest) (*UpdateSessionReply, error) // auth authenticate Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateReply, error) WhoAmI(context.Context, *WhoAmIRequest) (*WhoAmIReply, error) // auth device CreateDevice(context.Context, *Device) (*Device, error) ReadDevice(context.Context, *Device) (*Device, error) UpdateDevice(context.Context, *Device) (*Device, error) DeleteDevice(context.Context, *Device) (*Device, error) ListDevice(context.Context, *ListDeviceRequest) (*ListDeviceReply, error) AuthDevice(context.Context, *AuthDeviceRequest) (*AuthDeviceReply, error) // person read ReadPerson(context.Context, *Person) (*Person, error) // contains filtered or unexported methods }
VOxOVServer is the server API for VOxOV service. All implementations must embed UnimplementedVOxOVServer for forward compatibility
type WhoAmIReply ¶
type WhoAmIReply struct { Person int64 `protobuf:"varint,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*WhoAmIReply) Descriptor
deprecated
func (*WhoAmIReply) Descriptor() ([]byte, []int)
Deprecated: Use WhoAmIReply.ProtoReflect.Descriptor instead.
func (*WhoAmIReply) GetPerson ¶
func (x *WhoAmIReply) GetPerson() int64
func (*WhoAmIReply) ProtoMessage ¶
func (*WhoAmIReply) ProtoMessage()
func (*WhoAmIReply) ProtoReflect ¶
func (x *WhoAmIReply) ProtoReflect() protoreflect.Message
func (*WhoAmIReply) Reset ¶
func (x *WhoAmIReply) Reset()
func (*WhoAmIReply) String ¶
func (x *WhoAmIReply) String() string
type WhoAmIRequest ¶
type WhoAmIRequest struct { Tel string `protobuf:"bytes,1,opt,name=tel,proto3" json:"tel,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*WhoAmIRequest) Descriptor
deprecated
func (*WhoAmIRequest) Descriptor() ([]byte, []int)
Deprecated: Use WhoAmIRequest.ProtoReflect.Descriptor instead.
func (*WhoAmIRequest) GetMsg ¶
func (x *WhoAmIRequest) GetMsg() string
func (*WhoAmIRequest) GetTel ¶
func (x *WhoAmIRequest) GetTel() string
func (*WhoAmIRequest) GetToken ¶
func (x *WhoAmIRequest) GetToken() []byte
func (*WhoAmIRequest) ProtoMessage ¶
func (*WhoAmIRequest) ProtoMessage()
func (*WhoAmIRequest) ProtoReflect ¶
func (x *WhoAmIRequest) ProtoReflect() protoreflect.Message
func (*WhoAmIRequest) Reset ¶
func (x *WhoAmIRequest) Reset()
func (*WhoAmIRequest) String ¶
func (x *WhoAmIRequest) String() string