diff --git a/bindings/channels.go b/bindings/channels.go index e3e8b3a1dbdcefc5a38892eedd0823089f4ff679..bbd5fba3a185199ea6e28d74511b32703b3e7edd 100644 --- a/bindings/channels.go +++ b/bindings/channels.go @@ -322,7 +322,7 @@ func (cm *ChannelsManager) JoinChannel(channelPretty string) ([]byte, error) { // // JSON Example: // { -// U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID", +// "U4x/lrFkvxuXu59LtHLon1sUhPJSCcnZND6SugndnVID", // "15tNdkKbYXoMn58NO6VbDMDWFEyIhTWEGsvgcJsHWAgD" // } func (cm *ChannelsManager) GetChannels() ([]byte, error) { @@ -530,8 +530,8 @@ func (cm *ChannelsManager) SendMessage(marshalledChanId []byte, // the largest payload that can be sent, but it will always be possible to send // a payload of 766 bytes at minimum. // -// If the message ID the reply is sent to does not exist, then the other side -// will post the message as a normal message and not a reply. +// If the message ID that the reply is sent to does not exist, then the other +// side will post the message as a normal message and not a reply. // The message will auto delete validUntil after the round it is sent in, // lasting forever if ValidForever is used. // @@ -839,14 +839,14 @@ type EventModel interface { // Failed - 2 UpdateSentStatus(messageID []byte, status int64) - //unimplemented - //IgnoreMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) - //UnIgnoreMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) - //PinMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID, end time.Time) - //UnPinMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) + // unimplemented + // IgnoreMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) + // UnIgnoreMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) + // PinMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID, end time.Time) + // UnPinMessage(ChannelID *id.ID, MessageID cryptoChannel.MessageID) } -// toEventModel is a wrapper which wraps an existing EventModel object. +// toEventModel is a wrapper which wraps an existing channels.EventModel object. type toEventModel struct { em EventModel } diff --git a/bindings/delivery.go b/bindings/delivery.go index b420a58fc7d80a04609bc55dd100f58399a7d5ea..a645e9412dbbc99e49272843241f0dc22058c838 100644 --- a/bindings/delivery.go +++ b/bindings/delivery.go @@ -22,9 +22,9 @@ import ( // This should be used by any type of send report's GetRoundURL method. var dashboardBaseURL = "https://dashboard.xx.network" -// SetDashboardURL is a function which modifies the base dashboard URL -// that is returned as part of any send report. Internally, this is defaulted -// to "https://dashboard.xx.network". This should only be called if the user +// SetDashboardURL is a function which modifies the base dashboard URL that is +// returned as part of any send report. Internally, this is defaulted to +// "https://dashboard.xx.network". This should only be called if the user // explicitly wants to modify the dashboard URL. This function is not // thread-safe, and as such should only be called on setup. // @@ -50,7 +50,7 @@ type RoundsList struct { Rounds []uint64 } -// makeRoundsList converts a list of id.Round into a binding-compatable +// makeRoundsList converts a list of id.Round into a binding-compatible // RoundsList. func makeRoundsList(rounds ...id.Round) RoundsList { rl := RoundsList{make([]uint64, len(rounds))} diff --git a/bindings/follow.go b/bindings/follow.go index 362ace98f2c8c66f53717b405153c261f75b2597..503aa5e1a5301ab1cd0124044e7a57a87fe28eea 100644 --- a/bindings/follow.go +++ b/bindings/follow.go @@ -145,8 +145,8 @@ func (c *Cmix) IsHealthy() bool { // // JSON Example: // { -// "FileTransfer{BatchBuilderThread, FilePartSendingThread#0, FilePartSendingThread#1, FilePartSendingThread#2, FilePartSendingThread#3}", -// "MessageReception Worker 0" +// "FileTransfer{BatchBuilderThread, FilePartSendingThread#0, FilePartSendingThread#1, FilePartSendingThread#2, FilePartSendingThread#3}", +// "MessageReception Worker 0" // } func (c *Cmix) GetRunningProcesses() ([]byte, error) { return json.Marshal(c.api.GetRunningProcesses()) diff --git a/bindings/group.go b/bindings/group.go index 8ae6e0d0a98b3c0240954254e965886d84563ed0..ddb6f12b985ebfaf7e6d7c1df0c2c3b86cae3c45 100644 --- a/bindings/group.go +++ b/bindings/group.go @@ -322,7 +322,7 @@ func (g *Group) Serialize() []byte { return g.g.Serialize() } -// DeserializeGroup converts the results of Group.Serialize() into a Group +// DeserializeGroup converts the results of Group.Serialize into a Group // so that its methods can be called. func DeserializeGroup(serializedGroupData []byte) (*Group, error) { grp, err := gs.DeserializeGroup(serializedGroupData)