MCPcopy
hub / github.com/tmrts/go-patterns / Terminal

Struct Terminal

structural/proxy/main.go:71–74  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

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
71type Terminal struct {
72 currentUser string
73 gopherTerminal *GopherTerminal
74}
75
76// NewTerminal creates new instance of terminal
77func NewTerminal(user string) (t *Terminal, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected