Documentation ¶
Index ¶
- Variables
- func RegisterAriseService(s grpc.ServiceRegistrar, srv *AriseService)
- type AriseClient
- type AriseService
- type Arise_DataRecieveClient
- type Arise_DataRecieveServer
- type Arise_DataSendClient
- type Arise_DataSendServer
- type Chunk
- type Code
- type Empty
- type EncryptionKey
- func (*EncryptionKey) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptionKey) GetCode() string
- func (x *EncryptionKey) GetKey() []byte
- func (*EncryptionKey) ProtoMessage()
- func (x *EncryptionKey) ProtoReflect() protoreflect.Message
- func (x *EncryptionKey) Reset()
- func (x *EncryptionKey) String() string
- type EncryptionKeyResponse
- func (*EncryptionKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptionKeyResponse) GetMessage() string
- func (*EncryptionKeyResponse) ProtoMessage()
- func (x *EncryptionKeyResponse) ProtoReflect() protoreflect.Message
- func (x *EncryptionKeyResponse) Reset()
- func (x *EncryptionKeyResponse) String() string
- type PublicKey
- type PublicKeyResponse
- type RecieveResponse
- type RecieverInfo
- type RecieverRequest
- type RecieverResponse
- func (*RecieverResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RecieverResponse) GetHash() string
- func (x *RecieverResponse) GetName() string
- func (x *RecieverResponse) GetSize() int64
- func (*RecieverResponse) ProtoMessage()
- func (x *RecieverResponse) ProtoReflect() protoreflect.Message
- func (x *RecieverResponse) Reset()
- func (x *RecieverResponse) String() string
- type SendResponse
- type SenderInfo
- type SenderRequest
- func (*SenderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SenderRequest) GetHash() string
- func (x *SenderRequest) GetName() string
- func (x *SenderRequest) GetSize() int64
- func (*SenderRequest) ProtoMessage()
- func (x *SenderRequest) ProtoReflect() protoreflect.Message
- func (x *SenderRequest) Reset()
- func (x *SenderRequest) String() string
- type SenderResponse
Constants ¶
This section is empty.
Variables ¶
var File_arise_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAriseService ¶
func RegisterAriseService(s grpc.ServiceRegistrar, srv *AriseService)
RegisterAriseService registers a service implementation with a gRPC server.
Types ¶
type AriseClient ¶
type AriseClient interface { Sender(ctx context.Context, in *SenderRequest, opts ...grpc.CallOption) (*SenderResponse, error) Reciever(ctx context.Context, in *RecieverRequest, opts ...grpc.CallOption) (*RecieverResponse, error) DataSend(ctx context.Context, opts ...grpc.CallOption) (Arise_DataSendClient, error) DataRecieve(ctx context.Context, in *RecieverRequest, opts ...grpc.CallOption) (Arise_DataRecieveClient, error) GetRecieverInfo(ctx context.Context, in *Code, opts ...grpc.CallOption) (*RecieverInfo, error) GetSenderInfo(ctx context.Context, in *Code, opts ...grpc.CallOption) (*SenderInfo, error) GetPublicKey(ctx context.Context, in *Code, opts ...grpc.CallOption) (*PublicKey, error) GetEncryptionKey(ctx context.Context, in *Code, opts ...grpc.CallOption) (*EncryptionKey, error) }
AriseClient is the client API for Arise 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 NewAriseClient ¶
func NewAriseClient(cc grpc.ClientConnInterface) AriseClient
type AriseService ¶
type AriseService struct { Sender func(context.Context, *SenderRequest) (*SenderResponse, error) Reciever func(context.Context, *RecieverRequest) (*RecieverResponse, error) DataSend func(Arise_DataSendServer) error DataRecieve func(*RecieverRequest, Arise_DataRecieveServer) error GetRecieverInfo func(context.Context, *Code) (*RecieverInfo, error) GetSenderInfo func(context.Context, *Code) (*SenderInfo, error) GetPublicKey func(context.Context, *Code) (*PublicKey, error) GetEncryptionKey func(context.Context, *Code) (*EncryptionKey, error) }
AriseService is the service API for Arise service. Fields should be assigned to their respective handler implementations only before RegisterAriseService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
type Arise_DataRecieveClient ¶
type Arise_DataRecieveClient interface { Recv() (*RecieveResponse, error) grpc.ClientStream }
type Arise_DataRecieveServer ¶
type Arise_DataRecieveServer interface { Send(*RecieveResponse) error grpc.ServerStream }
type Arise_DataSendClient ¶
type Arise_DataSendClient interface { Send(*Chunk) error CloseAndRecv() (*SendResponse, error) grpc.ClientStream }
type Arise_DataSendServer ¶
type Arise_DataSendServer interface { SendAndClose(*SendResponse) error Recv() (*Chunk, error) grpc.ServerStream }
type Chunk ¶
type Chunk struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Chunk) Descriptor
deprecated
func (*Chunk) GetContent ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) ProtoReflect ¶
func (x *Chunk) ProtoReflect() protoreflect.Message
type Code ¶
type Code struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Code) Descriptor
deprecated
func (*Code) ProtoMessage ¶
func (*Code) ProtoMessage()
func (*Code) ProtoReflect ¶
func (x *Code) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EncryptionKey ¶
type EncryptionKey struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*EncryptionKey) Descriptor
deprecated
func (*EncryptionKey) Descriptor() ([]byte, []int)
Deprecated: Use EncryptionKey.ProtoReflect.Descriptor instead.
func (*EncryptionKey) GetCode ¶
func (x *EncryptionKey) GetCode() string
func (*EncryptionKey) GetKey ¶
func (x *EncryptionKey) GetKey() []byte
func (*EncryptionKey) ProtoMessage ¶
func (*EncryptionKey) ProtoMessage()
func (*EncryptionKey) ProtoReflect ¶
func (x *EncryptionKey) ProtoReflect() protoreflect.Message
func (*EncryptionKey) Reset ¶
func (x *EncryptionKey) Reset()
func (*EncryptionKey) String ¶
func (x *EncryptionKey) String() string
type EncryptionKeyResponse ¶
type EncryptionKeyResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EncryptionKeyResponse) Descriptor
deprecated
func (*EncryptionKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncryptionKeyResponse.ProtoReflect.Descriptor instead.
func (*EncryptionKeyResponse) GetMessage ¶
func (x *EncryptionKeyResponse) GetMessage() string
func (*EncryptionKeyResponse) ProtoMessage ¶
func (*EncryptionKeyResponse) ProtoMessage()
func (*EncryptionKeyResponse) ProtoReflect ¶
func (x *EncryptionKeyResponse) ProtoReflect() protoreflect.Message
func (*EncryptionKeyResponse) Reset ¶
func (x *EncryptionKeyResponse) Reset()
func (*EncryptionKeyResponse) String ¶
func (x *EncryptionKeyResponse) String() string
type PublicKey ¶
type PublicKey struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type PublicKeyResponse ¶
type PublicKeyResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PublicKeyResponse) Descriptor
deprecated
func (*PublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeyResponse.ProtoReflect.Descriptor instead.
func (*PublicKeyResponse) GetMessage ¶
func (x *PublicKeyResponse) GetMessage() string
func (*PublicKeyResponse) ProtoMessage ¶
func (*PublicKeyResponse) ProtoMessage()
func (*PublicKeyResponse) ProtoReflect ¶
func (x *PublicKeyResponse) ProtoReflect() protoreflect.Message
func (*PublicKeyResponse) Reset ¶
func (x *PublicKeyResponse) Reset()
func (*PublicKeyResponse) String ¶
func (x *PublicKeyResponse) String() string
type RecieveResponse ¶
type RecieveResponse struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*RecieveResponse) Descriptor
deprecated
func (*RecieveResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecieveResponse.ProtoReflect.Descriptor instead.
func (*RecieveResponse) GetContent ¶
func (x *RecieveResponse) GetContent() []byte
func (*RecieveResponse) ProtoMessage ¶
func (*RecieveResponse) ProtoMessage()
func (*RecieveResponse) ProtoReflect ¶
func (x *RecieveResponse) ProtoReflect() protoreflect.Message
func (*RecieveResponse) Reset ¶
func (x *RecieveResponse) Reset()
func (*RecieveResponse) String ¶
func (x *RecieveResponse) String() string
type RecieverInfo ¶
type RecieverInfo struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*RecieverInfo) Descriptor
deprecated
func (*RecieverInfo) Descriptor() ([]byte, []int)
Deprecated: Use RecieverInfo.ProtoReflect.Descriptor instead.
func (*RecieverInfo) GetIp ¶
func (x *RecieverInfo) GetIp() string
func (*RecieverInfo) ProtoMessage ¶
func (*RecieverInfo) ProtoMessage()
func (*RecieverInfo) ProtoReflect ¶
func (x *RecieverInfo) ProtoReflect() protoreflect.Message
func (*RecieverInfo) Reset ¶
func (x *RecieverInfo) Reset()
func (*RecieverInfo) String ¶
func (x *RecieverInfo) String() string
type RecieverRequest ¶
type RecieverRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*RecieverRequest) Descriptor
deprecated
func (*RecieverRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecieverRequest.ProtoReflect.Descriptor instead.
func (*RecieverRequest) GetCode ¶
func (x *RecieverRequest) GetCode() string
func (*RecieverRequest) ProtoMessage ¶
func (*RecieverRequest) ProtoMessage()
func (*RecieverRequest) ProtoReflect ¶
func (x *RecieverRequest) ProtoReflect() protoreflect.Message
func (*RecieverRequest) Reset ¶
func (x *RecieverRequest) Reset()
func (*RecieverRequest) String ¶
func (x *RecieverRequest) String() string
type RecieverResponse ¶
type RecieverResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*RecieverResponse) Descriptor
deprecated
func (*RecieverResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecieverResponse.ProtoReflect.Descriptor instead.
func (*RecieverResponse) GetHash ¶
func (x *RecieverResponse) GetHash() string
func (*RecieverResponse) GetName ¶
func (x *RecieverResponse) GetName() string
func (*RecieverResponse) GetSize ¶
func (x *RecieverResponse) GetSize() int64
func (*RecieverResponse) ProtoMessage ¶
func (*RecieverResponse) ProtoMessage()
func (*RecieverResponse) ProtoReflect ¶
func (x *RecieverResponse) ProtoReflect() protoreflect.Message
func (*RecieverResponse) Reset ¶
func (x *RecieverResponse) Reset()
func (*RecieverResponse) String ¶
func (x *RecieverResponse) String() string
type SendResponse ¶
type SendResponse struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetText ¶
func (x *SendResponse) GetText() string
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
type SenderInfo ¶
type SenderInfo struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*SenderInfo) Descriptor
deprecated
func (*SenderInfo) Descriptor() ([]byte, []int)
Deprecated: Use SenderInfo.ProtoReflect.Descriptor instead.
func (*SenderInfo) GetIp ¶
func (x *SenderInfo) GetIp() string
func (*SenderInfo) ProtoMessage ¶
func (*SenderInfo) ProtoMessage()
func (*SenderInfo) ProtoReflect ¶
func (x *SenderInfo) ProtoReflect() protoreflect.Message
func (*SenderInfo) Reset ¶
func (x *SenderInfo) Reset()
func (*SenderInfo) String ¶
func (x *SenderInfo) String() string
type SenderRequest ¶
type SenderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*SenderRequest) Descriptor
deprecated
func (*SenderRequest) Descriptor() ([]byte, []int)
Deprecated: Use SenderRequest.ProtoReflect.Descriptor instead.
func (*SenderRequest) GetHash ¶
func (x *SenderRequest) GetHash() string
func (*SenderRequest) GetName ¶
func (x *SenderRequest) GetName() string
func (*SenderRequest) GetSize ¶
func (x *SenderRequest) GetSize() int64
func (*SenderRequest) ProtoMessage ¶
func (*SenderRequest) ProtoMessage()
func (*SenderRequest) ProtoReflect ¶
func (x *SenderRequest) ProtoReflect() protoreflect.Message
func (*SenderRequest) Reset ¶
func (x *SenderRequest) Reset()
func (*SenderRequest) String ¶
func (x *SenderRequest) String() string
type SenderResponse ¶
type SenderResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SenderResponse) Descriptor
deprecated
func (*SenderResponse) Descriptor() ([]byte, []int)
Deprecated: Use SenderResponse.ProtoReflect.Descriptor instead.
func (*SenderResponse) GetCode ¶
func (x *SenderResponse) GetCode() string
func (*SenderResponse) ProtoMessage ¶
func (*SenderResponse) ProtoMessage()
func (*SenderResponse) ProtoReflect ¶
func (x *SenderResponse) ProtoReflect() protoreflect.Message
func (*SenderResponse) Reset ¶
func (x *SenderResponse) Reset()
func (*SenderResponse) String ¶
func (x *SenderResponse) String() string