servers

package
v0.0.0-...-36a05bd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClipboardServer

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

func NewClipboardServer

func NewClipboardServer() *ClipboardServer

func (*ClipboardServer) Get

func (s *ClipboardServer) Get(ctx context.Context, params *pb.GetRequest) (*pb.Clip, error)

func (*ClipboardServer) Push

func (s *ClipboardServer) Push(ctx context.Context, params *pb.PushRequest) (*pb.Clip, error)

func (*ClipboardServer) Subscribe

func (s *ClipboardServer) Subscribe(params *pb.SubscribeRequest, stream pb.Clipboard_SubscribeServer) error

type Subscriber

type Subscriber struct {
	C chan []byte
	// contains filtered or unexported fields
}

func NewSubscriber

func NewSubscriber() Subscriber

Jump to

Keyboard shortcuts

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