SYMBOL INDEX (76 symbols across 12 files) FILE: cmd/sup3rS3cretMes5age/main.go function main (line 20) | func main() { FILE: internal/config.go type conf (line 13) | type conf struct constant HttpBindingAddressVarenv (line 35) | HttpBindingAddressVarenv = "SUPERSECRETMESSAGE_HTTP_BINDING_ADDRESS" constant HttpsBindingAddressVarenv (line 37) | HttpsBindingAddressVarenv = "SUPERSECRETMESSAGE_HTTPS_BINDING_ADDRESS" constant HttpsRedirectEnabledVarenv (line 39) | HttpsRedirectEnabledVarenv = "SUPERSECRETMESSAGE_HTTPS_REDIRECT_ENABLED" constant TLSAutoDomainVarenv (line 41) | TLSAutoDomainVarenv = "SUPERSECRETMESSAGE_TLS_AUTO_DOMAIN" constant TLSCertFilepathVarenv (line 43) | TLSCertFilepathVarenv = "SUPERSECRETMESSAGE_TLS_CERT_FILEPATH" constant TLSCertKeyFilepathVarenv (line 45) | TLSCertKeyFilepathVarenv = "SUPERSECRETMESSAGE_TLS_CERT_KEY_FILEPATH" constant VaultPrefixenv (line 47) | VaultPrefixenv = "SUPERSECRETMESSAGE_VAULT_PREFIX" constant AllowedOriginsVarenv (line 49) | AllowedOriginsVarenv = "SUPERSECRETMESSAGE_ALLOWED_ORIGINS" function LoadConfig (line 55) | func LoadConfig() conf { FILE: internal/config_test.go function TestLoadConfig (line 10) | func TestLoadConfig(t *testing.T) { FILE: internal/handlers.go type TokenResponse (line 23) | type TokenResponse struct type MsgResponse (line 33) | type MsgResponse struct type SecretHandlers (line 39) | type SecretHandlers struct method CreateMsgHandler (line 117) | func (s SecretHandlers) CreateMsgHandler(ctx echo.Context) error { method GetMsgHandler (line 174) | func (s SecretHandlers) GetMsgHandler(ctx echo.Context) error { function NewSecretHandlers (line 45) | func NewSecretHandlers(s SecretMsgStorer) *SecretHandlers { function validateMsg (line 50) | func validateMsg(msg string) error { function isValidTTL (line 64) | func isValidTTL(ttl string) bool { function validateFileUpload (line 79) | func validateFileUpload(file *multipart.FileHeader) error { function validateVaultToken (line 105) | func validateVaultToken(token string) error { function healthHandler (line 193) | func healthHandler(ctx echo.Context) error { function redirectHandler (line 198) | func redirectHandler(ctx echo.Context) error { FILE: internal/handlers_test.go type FakeSecretMsgStorer (line 18) | type FakeSecretMsgStorer struct method Get (line 26) | func (f *FakeSecretMsgStorer) Get(token string) (msg string, err error) { method Store (line 31) | func (f *FakeSecretMsgStorer) Store(msg string, ttl string) (token str... function TestGetMsgHandler (line 36) | func TestGetMsgHandler(t *testing.T) { function TestHealthHandler (line 102) | func TestHealthHandler(t *testing.T) { function TestRedirectHandler (line 114) | func TestRedirectHandler(t *testing.T) { function TestIsValidTTL (line 127) | func TestIsValidTTL(t *testing.T) { function TestValidateMsg (line 151) | func TestValidateMsg(t *testing.T) { function TestCreateMsgHandler (line 175) | func TestCreateMsgHandler(t *testing.T) { function TestCreateMsgHandlerWithFile (line 220) | func TestCreateMsgHandlerWithFile(t *testing.T) { FILE: internal/server.go type Server (line 20) | type Server struct method Start (line 61) | func (s *Server) Start(ctx context.Context) error { method startHTTP (line 103) | func (s *Server) startHTTP() error { method startHTTPS (line 119) | func (s *Server) startHTTPS() error { method Shutdown (line 173) | func (s *Server) Shutdown(ctx context.Context) error { method handler (line 193) | func (s *Server) handler() http.Handler { function NewServer (line 31) | func NewServer(cnf conf, handlers *SecretHandlers) *Server { function setupMiddlewares (line 201) | func setupMiddlewares(e *echo.Echo, cnf conf) { function setupRoutes (line 256) | func setupRoutes(e *echo.Echo, handlers *SecretHandlers) { FILE: internal/server_test.go function TestNewServer (line 14) | func TestNewServer(t *testing.T) { function TestServerHandler (line 30) | func TestServerHandler(t *testing.T) { function TestServerRoutesRegistered (line 48) | func TestServerRoutesRegistered(t *testing.T) { function TestServerWithMiddlewares (line 73) | func TestServerWithMiddlewares(t *testing.T) { function TestServerSecurityHeaders (line 92) | func TestServerSecurityHeaders(t *testing.T) { function TestServerRedirect (line 112) | func TestServerRedirect(t *testing.T) { function TestServerWithTLSAutoDomain (line 129) | func TestServerWithTLSAutoDomain(t *testing.T) { function TestServerGracefulShutdown (line 146) | func TestServerGracefulShutdown(t *testing.T) { function TestServerHandlersIntegration (line 162) | func TestServerHandlersIntegration(t *testing.T) { function TestServerRateLimiting (line 186) | func TestServerRateLimiting(t *testing.T) { FILE: internal/vault.go type SecretMsgStorer (line 12) | type SecretMsgStorer interface type vault (line 21) | type vault struct method Store (line 44) | func (v vault) Store(msg string, ttl string) (token string, err error) { method createOneTimeToken (line 64) | func (v vault) createOneTimeToken(ttl string) (string, error) { method newVaultClient (line 88) | func (v vault) newVaultClient() (*api.Client, error) { method writeMsgToVault (line 113) | func (v vault) writeMsgToVault(token, msg string) error { method Get (line 129) | func (v vault) Get(token string) (msg string, err error) { method newVaultClientWithToken (line 144) | func (v vault) newVaultClientWithToken(token string) (*api.Client, err... method newVaultClientToRenewToken (line 156) | func (v vault) newVaultClientToRenewToken() { function NewVault (line 33) | func NewVault(address string, prefix string, token string) *vault { FILE: internal/vault_test.go function createTestVault (line 13) | func createTestVault(t *testing.T) (net.Listener, *api.Client) { function TestStoreAndGet (line 38) | func TestStoreAndGet(t *testing.T) { function TestMsgCanOnlyBeAccessedOnce (line 52) | func TestMsgCanOnlyBeAccessedOnce(t *testing.T) { function TestStoreWithInvalidAddress (line 68) | func TestStoreWithInvalidAddress(t *testing.T) { FILE: web/static/getmsg.js function validateSecretUrl (line 26) | function validateSecretUrl(token) { function showSecret (line 40) | function showSecret() { function showMsg (line 67) | function showMsg(msg, filetoken, filename) { function getSecret (line 106) | function getSecret(token, name) { function b64toBlob (line 137) | function b64toBlob(b64Data, contentType, sliceSize) { FILE: web/static/index.js function setStyles (line 10) | function setStyles(element, styles) { function showURL (line 72) | function showURL(token, filetoken, filename) { FILE: web/static/utils.js function $ (line 7) | function $(selector) { function $$ (line 12) | function $$(selector) {