From 7cc8e14fe275bcfe601b7cec4704a09323430e45 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 23 Jul 2019 14:58:33 -0400 Subject: [PATCH] Move more types into types.go --- chatIn.go | 11 ----------- types.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/chatIn.go b/chatIn.go index f05d8c7..4fc2932 100644 --- a/chatIn.go +++ b/chatIn.go @@ -7,17 +7,6 @@ import ( "time" ) -// RunOptions holds a set of options to be passed to Run -type RunOptions struct { - Heartbeat int64 // Send a heartbeat through the channel every X minutes (0 = off) - Local bool // Subscribe to local messages - HideExploding bool // Ignore exploding messages - Dev bool // Subscribe to dev channel messages - Wallet bool // Subscribe to wallet events - FilterChannel Channel // Only subscribe to messages from specified channel - FilterChannels []Channel // Only subscribe to messages from specified channels -} - // Creates a string of a json-encoded channel to pass to keybase chat api-listen --filter-channel func createFilterString(channel Channel) string { if channel.Name == "" { diff --git a/types.go b/types.go index 6eac30c..688ab37 100644 --- a/types.go +++ b/types.go @@ -1,5 +1,16 @@ package keybase +// RunOptions holds a set of options to be passed to Run +type RunOptions struct { + Heartbeat int64 // Send a heartbeat through the channel every X minutes (0 = off) + Local bool // Subscribe to local messages + HideExploding bool // Ignore exploding messages + Dev bool // Subscribe to dev channel messages + Wallet bool // Subscribe to wallet events + FilterChannel Channel // Only subscribe to messages from specified channel + FilterChannels []Channel // Only subscribe to messages from specified channels +} + // ChatAPI holds information about a message received by the `keybase chat api-listen` command type ChatAPI struct { Type string `json:"type,omitempty"`