wire

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientID

type ClientID struct {
	Scheme   string
	Username string
	DeviceID string
	Domain   string
}

func ParseClientID

func ParseClientID(clientID string) (ClientID, error)

ParseClientID parses a Wire clientID. The ClientID format is as follows:

"wireapp://CzbfFjDOQrenCbDxVmgnFw!594930e9d50bb175@wire.com",

where '!' is used as a separator between the user id & device id.

type DeviceID

type DeviceID struct {
	Name     string `json:"name,omitempty"`
	Domain   string `json:"domain,omitempty"`
	ClientID string `json:"client-id,omitempty"`
	Handle   string `json:"handle,omitempty"`
}

func ParseDeviceID

func ParseDeviceID(value string) (id DeviceID, err error)

type UserID

type UserID struct {
	Name   string `json:"name,omitempty"`
	Domain string `json:"domain,omitempty"`
	Handle string `json:"handle,omitempty"`
}

func ParseUserID

func ParseUserID(value string) (id UserID, err error)

Jump to

Keyboard shortcuts

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