* And now we will create owr proxy to deliver user and commands to specific objects */ Terminal is a implementation of Proxy, it's validates and sends data to GopherTerminal As example before send commands, user must be authorized
| 69 | // Terminal is a implementation of Proxy, it's validates and sends data to GopherTerminal |
| 70 | // As example before send commands, user must be authorized |
| 71 | type Terminal struct { |
| 72 | currentUser string |
| 73 | gopherTerminal *GopherTerminal |
| 74 | } |
| 75 | |
| 76 | // NewTerminal creates new instance of terminal |
| 77 | func NewTerminal(user string) (t *Terminal, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected