proto

package
v1.0.2-0...-f83ea57 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)
	SharePublicKey(ctx context.Context, in *PublicKey, opts ...grpc.CallOption) (*PublicKeyResponse, error)
	GetEncryptionKey(ctx context.Context, in *Code, opts ...grpc.CallOption) (*EncryptionKey, error)
	ShareEncryptionKey(ctx context.Context, in *EncryptionKey, opts ...grpc.CallOption) (*EncryptionKeyResponse, 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)
	SharePublicKey     func(context.Context, *PublicKey) (*PublicKeyResponse, error)
	GetEncryptionKey   func(context.Context, *Code) (*EncryptionKey, error)
	ShareEncryptionKey func(context.Context, *EncryptionKey) (*EncryptionKeyResponse, 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) Descriptor() ([]byte, []int)

Deprecated: Use Chunk.ProtoReflect.Descriptor instead.

func (*Chunk) GetCode

func (x *Chunk) GetCode() string

func (*Chunk) GetContent

func (x *Chunk) GetContent() []byte

func (*Chunk) ProtoMessage

func (*Chunk) ProtoMessage()

func (*Chunk) ProtoReflect

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

func (*Chunk) Reset

func (x *Chunk) Reset()

func (*Chunk) String

func (x *Chunk) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Code.ProtoReflect.Descriptor instead.

func (*Code) GetCode

func (x *Code) GetCode() string

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) ProtoReflect

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

func (*Code) Reset

func (x *Code) Reset()

func (*Code) String

func (x *Code) 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 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) Descriptor() ([]byte, []int)

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetCode

func (x *PublicKey) GetCode() string

func (*PublicKey) GetKey

func (x *PublicKey) GetKey() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

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

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

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

Jump to

Keyboard shortcuts

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