Versions in this module Expand all Collapse all v1 v1.0.0 Mar 4, 2024 Changes in this version + const ChunkSize + const GB + const KB + const MB + const MaxConcurrentShare + type Service struct + func NewService() *Service + func (s *Service) GenerateKey(relays []string) (string, uuid.UUID) + func (s *Service) ParseKey(key string) (relays []string, id uuid.UUID, err error) + func (s *Service) Receive(ctx context.Context, uid uuid.UUID, servers []string, caPath string, ...) (string, error) + func (s *Service) Share(ctx context.Context, filePath string, uid uuid.UUID, relays []string, ...) error + func (s *Service) VerifyRelays(ctx context.Context, relays []string, caPath string, withTLS, skipVerify bool) error