namespace

package module
v0.0.0-...-93092ad Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 5 Imported by: 7 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-imap-namespace

go.dev reference

NAMESPACE extension for go-imap

License

MIT

Documentation

Index

Constants

View Source
const Capability = "NAMESPACE"

Variables

This section is empty.

Functions

func NewExtension

func NewExtension() server.Extension

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *client.Client) Client

func (Client) Namespaces

func (c Client) Namespaces() (personal, other, shared []Namespace, err error)

type Command

type Command struct{}

func (Command) Command

func (cmd Command) Command() *imap.Command

func (Command) Parse

func (cmd Command) Parse(fields []interface{}) error

type Handler

type Handler struct {
	Command
}

func (*Handler) Handle

func (h *Handler) Handle(conn server.Conn) error

type Namespace

type Namespace struct {
	Prefix    string
	Delimiter string
}

type Response

type Response struct {
	Personal []Namespace
	Other    []Namespace
	Shared   []Namespace
}

func (*Response) Handle

func (r *Response) Handle(resp imap.Resp) error

func (*Response) Parse

func (r *Response) Parse(fields []interface{}) error

func (Response) WriteTo

func (r Response) WriteTo(w *imap.Writer) error

type User

type User interface {
	Namespaces() (personal, other, shared []Namespace, err error)
}

Jump to

Keyboard shortcuts

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