Changeset 249 in code


Ignore:
Timestamp:
Apr 7, 2020, 8:30:54 PM (5 years ago)
Author:
contact
Message:

Document downstreamConn.{,un}marshalEntity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r245 r249  
    122122}
    123123
     124// marshalEntity converts an upstream entity name (ie. channel or nick) into a
     125// downstream entity name.
     126//
     127// This involves adding a "/<network>" suffix if the entity isn't the current
     128// user.
    124129func (dc *downstreamConn) marshalEntity(uc *upstreamConn, entity string) string {
    125130        if uc.isChannel(entity) {
     
    136141}
    137142
     143// unmarshalEntity converts a downstream entity name (ie. channel or nick) into
     144// an upstream entity name.
     145//
     146// This involves removing the "/<network>" suffix.
    138147func (dc *downstreamConn) unmarshalEntity(name string) (*upstreamConn, string, error) {
    139148        if uc := dc.upstream(); uc != nil {
Note: See TracChangeset for help on using the changeset viewer.