mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-18 00:30:40 -07:00
23 lines
297 B
Go
23 lines
297 B
Go
package core
|
|
|
|
type Server struct {
|
|
host string
|
|
apiKey string
|
|
}
|
|
|
|
func (s *Server) SetHost(host string) {
|
|
s.host = host
|
|
}
|
|
|
|
func (s *Server) GetHost() string {
|
|
return s.host
|
|
}
|
|
|
|
func (s *Server) SetAPIKey(key string) {
|
|
s.apiKey = key
|
|
}
|
|
|
|
func (s *Server) GetAPIKey() string {
|
|
return s.apiKey
|
|
}
|