MCPcopy Index your code
hub / github.com/coder/coder / hostname

Method hostname

coderd/notifications/dispatch/smtp.go:555–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553}
554
555func (*SMTPHandler) hostname() string {
556 h, err := os.Hostname()
557 // If we can't get the hostname, we'll use localhost
558 if err != nil {
559 h = "localhost.localdomain"
560 }
561 return h
562}
563
564// password returns either the configured password, or reads it from the configured file (if possible).
565func (s *SMTPHandler) password() (string, error) {

Callers 1

dispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected