SYMBOL INDEX (227 symbols across 36 files) FILE: authentication-service/cmd/api/handlers.go method Authenticate (line 12) | func (app *Config) Authenticate(w http.ResponseWriter, r *http.Request) { method logRequest (line 59) | func (app *Config) logRequest(name, data string) error { FILE: authentication-service/cmd/api/helpers.go constant randomStringSource (line 11) | randomStringSource = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX... type jsonResponse (line 14) | type jsonResponse struct method readJSON (line 21) | func (app *Config) readJSON(w http.ResponseWriter, r *http.Request, data... method writeJSON (line 40) | func (app *Config) writeJSON(w http.ResponseWriter, status int, data any... method errorJSON (line 64) | func (app *Config) errorJSON(w http.ResponseWriter, err error, status ..... method randomString (line 79) | func (app *Config) randomString(n int) string { FILE: authentication-service/cmd/api/main.go constant webPort (line 16) | webPort = "80" type Config (line 20) | type Config struct function main (line 26) | func main() { function connectToDB (line 56) | func connectToDB() *sql.DB { function openDB (line 81) | func openDB(dsn string) (*sql.DB, error) { FILE: authentication-service/cmd/api/routes.go method routes (line 10) | func (app *Config) routes() http.Handler { FILE: authentication-service/data/models.go constant dbTimeout (line 13) | dbTimeout = time.Second * 3 function New (line 19) | func New(dbPool *sql.DB) Models { type Models (line 30) | type Models struct type User (line 35) | type User struct method GetAll (line 47) | func (u *User) GetAll() ([]*User, error) { method GetByEmail (line 86) | func (u *User) GetByEmail(email string) (*User, error) { method GetOne (line 114) | func (u *User) GetOne(id int) (*User, error) { method Update (line 143) | func (u *User) Update() error { method Delete (line 173) | func (u *User) Delete() error { method DeleteByID (line 188) | func (u *User) DeleteByID(id int) error { method Insert (line 203) | func (u *User) Insert(user User) (int, error) { method ResetPassword (line 234) | func (u *User) ResetPassword(password string) error { method PasswordMatches (line 255) | func (u *User) PasswordMatches(plainText string) (bool, error) { FILE: authentication-service/users.sql type public (line 25) | CREATE TABLE public.users ( FILE: broker-service/cmd/api/discover.go function getUrlFromMap (line 109) | func getUrlFromMap(m map[string]string) string { function connectToEtcd (line 119) | func connectToEtcd() (*clientv3.Client, error) { FILE: broker-service/cmd/api/handlers.go constant loggerGRPCAddress (line 19) | loggerGRPCAddress = "logger-service:50001" type Payload (line 22) | type Payload struct type RequestPayload (line 30) | type RequestPayload struct type AuthPayload (line 38) | type AuthPayload struct type LogPayload (line 44) | type LogPayload struct type MailPayload (line 50) | type MailPayload struct method Broker (line 58) | func (app *Config) Broker(w http.ResponseWriter, r *http.Request) { method HandleSubmission (line 75) | func (app *Config) HandleSubmission(w http.ResponseWriter, r *http.Reque... method logViaJSON (line 96) | func (app *Config) logViaJSON(w http.ResponseWriter, entry LogPayload) { method sendMail (line 127) | func (app *Config) sendMail(w http.ResponseWriter, msg MailPayload) { method authenticate (line 168) | func (app *Config) authenticate(w http.ResponseWriter, a AuthPayload) { method logItem (line 232) | func (app *Config) logItem(w http.ResponseWriter, l LogPayload) { type RPCPayload (line 247) | type RPCPayload struct method logItemViaRPC (line 252) | func (app *Config) logItemViaRPC(w http.ResponseWriter, l LogPayload) { method pushToQueue (line 280) | func (app *Config) pushToQueue(name, msg string) error { method LogViaGRPC (line 301) | func (app *Config) LogViaGRPC(w http.ResponseWriter, r *http.Request) { FILE: broker-service/cmd/api/helpers.go type jsonResponse (line 10) | type jsonResponse struct method readJSON (line 17) | func (app *Config) readJSON(w http.ResponseWriter, r *http.Request, data... method writeJSON (line 36) | func (app *Config) writeJSON(w http.ResponseWriter, status int, data any... method errorJSON (line 60) | func (app *Config) errorJSON(w http.ResponseWriter, err error, status ..... FILE: broker-service/cmd/api/main.go constant webPort (line 15) | webPort = "80" type Config (line 19) | type Config struct function main (line 27) | func main() { function connectToRabbit (line 71) | func connectToRabbit() (*amqp.Connection, error) { FILE: broker-service/cmd/api/routes.go method routes (line 10) | func (app *Config) routes() http.Handler { FILE: broker-service/event/emitter.go type Emitter (line 11) | type Emitter struct method setup (line 15) | func (e *Emitter) setup() error { method Push (line 26) | func (e *Emitter) Push(event string, severity string) error { function NewEventEmitter (line 58) | func NewEventEmitter(conn *amqp.Connection) (Emitter, error) { FILE: broker-service/event/event.go function getExchangeName (line 7) | func getExchangeName() string { function declareExchange (line 11) | func declareExchange(ch *amqp.Channel) error { FILE: broker-service/logs/logs.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Log (line 23) | type Log struct method Reset (line 32) | func (x *Log) Reset() { method String (line 41) | func (x *Log) String() string { method ProtoMessage (line 45) | func (*Log) ProtoMessage() {} method ProtoReflect (line 47) | func (x *Log) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*Log) Descriptor() ([]byte, []int) { method GetName (line 64) | func (x *Log) GetName() string { method GetData (line 71) | func (x *Log) GetData() string { type LogRequest (line 78) | type LogRequest struct method Reset (line 86) | func (x *LogRequest) Reset() { method String (line 95) | func (x *LogRequest) String() string { method ProtoMessage (line 99) | func (*LogRequest) ProtoMessage() {} method ProtoReflect (line 101) | func (x *LogRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*LogRequest) Descriptor() ([]byte, []int) { method GetLogEntry (line 118) | func (x *LogRequest) GetLogEntry() *Log { type LogResponse (line 125) | type LogResponse struct method Reset (line 133) | func (x *LogResponse) Reset() { method String (line 142) | func (x *LogResponse) String() string { method ProtoMessage (line 146) | func (*LogResponse) ProtoMessage() {} method ProtoReflect (line 148) | func (x *LogResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 161) | func (*LogResponse) Descriptor() ([]byte, []int) { method GetResult (line 165) | func (x *LogResponse) GetResult() string { function file_logs_logs_proto_rawDescGZIP (line 198) | func file_logs_logs_proto_rawDescGZIP() []byte { function init (line 222) | func init() { file_logs_logs_proto_init() } function file_logs_logs_proto_init (line 223) | func file_logs_logs_proto_init() { FILE: broker-service/logs/logs_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type LogServiceClient (line 24) | type LogServiceClient interface type logServiceClient (line 28) | type logServiceClient struct method WriteLog (line 36) | func (c *logServiceClient) WriteLog(ctx context.Context, in *LogReques... function NewLogServiceClient (line 32) | func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient { type LogServiceServer (line 48) | type LogServiceServer interface type UnimplementedLogServiceServer (line 54) | type UnimplementedLogServiceServer struct method WriteLog (line 57) | func (UnimplementedLogServiceServer) WriteLog(context.Context, *LogReq... method mustEmbedUnimplementedLogServiceServer (line 60) | func (UnimplementedLogServiceServer) mustEmbedUnimplementedLogServiceS... type UnsafeLogServiceServer (line 65) | type UnsafeLogServiceServer interface function RegisterLogServiceServer (line 69) | func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceSer... function _LogService_WriteLog_Handler (line 73) | func _LogService_WriteLog_Handler(srv interface{}, ctx context.Context, ... FILE: front-end/cmd/web/main.go function main (line 11) | func main() { function render (line 29) | func render(w http.ResponseWriter, t string) { FILE: listener-service/lib/event/consumer.go type Consumer (line 15) | type Consumer struct method setup (line 34) | func (consumer *Consumer) setup() error { method Listen (line 49) | func (consumer *Consumer) Listen(topics []string) error { function NewConsumer (line 21) | func NewConsumer(conn *amqp.Connection) (Consumer, error) { type Payload (line 43) | type Payload struct function handlePayload (line 99) | func handlePayload(payload Payload) { function rpcPushToLogger (line 132) | func rpcPushToLogger(function string, data any) (string, error) { function authenticate (line 151) | func authenticate(payload Payload) error { function logEvent (line 157) | func logEvent(entry Payload) error { FILE: listener-service/lib/event/event.go function getExchangeName (line 7) | func getExchangeName() string { function declareRandomQueue (line 12) | func declareRandomQueue(ch *amqp.Channel) (amqp.Queue, error) { function declareExchange (line 24) | func declareExchange(ch *amqp.Channel) error { FILE: listener-service/main.go function main (line 13) | func main() { function connect (line 40) | func connect() (*amqp.Connection, error) { FILE: logger-service/cmd/web/grpc.go type LogServer (line 15) | type LogServer struct method WriteLog (line 23) | func (l *LogServer) WriteLog(ctx context.Context, req *logs.LogRequest... method gRPCListen (line 46) | func (app *Config) gRPCListen() { FILE: logger-service/cmd/web/handlers.go constant authServiceURL (line 16) | authServiceURL = "http://authentication-service/authenticate" type JSONPayload (line 19) | type JSONPayload struct method WriteLog (line 26) | func (app *Config) WriteLog(w http.ResponseWriter, r *http.Request) { method Logout (line 50) | func (app *Config) Logout(w http.ResponseWriter, r *http.Request) { method LoginPage (line 63) | func (app *Config) LoginPage(w http.ResponseWriter, r *http.Request) { method LoginPagePost (line 68) | func (app *Config) LoginPagePost(w http.ResponseWriter, r *http.Request) { method Dashboard (line 167) | func (app *Config) Dashboard(w http.ResponseWriter, r *http.Request) { method DisplayOne (line 184) | func (app *Config) DisplayOne(w http.ResponseWriter, r *http.Request) { method DeleteAll (line 202) | func (app *Config) DeleteAll(w http.ResponseWriter, r *http.Request) { method UpdateTimeStamp (line 212) | func (app *Config) UpdateTimeStamp(w http.ResponseWriter, r *http.Reques... FILE: logger-service/cmd/web/helpers.go constant randomStringSource (line 16) | randomStringSource = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX... type jsonResponse (line 18) | type jsonResponse struct method readJSON (line 25) | func (app *Config) readJSON(w http.ResponseWriter, r *http.Request, data... method writeJSON (line 44) | func (app *Config) writeJSON(w http.ResponseWriter, status int, data any... method errorJSON (line 68) | func (app *Config) errorJSON(w http.ResponseWriter, err error, status ..... method isAuthenticated (line 83) | func (app *Config) isAuthenticated(r *http.Request) bool { method clientError (line 89) | func (app *Config) clientError(w http.ResponseWriter, status int) { method serverError (line 95) | func (app *Config) serverError(w http.ResponseWriter, err error) { method logEvent (line 102) | func (app *Config) logEvent(name, content string) error { method randomString (line 112) | func (app *Config) randomString(n int) string { FILE: logger-service/cmd/web/main.go constant webPort (line 21) | webPort = "80" constant rpcPort (line 22) | rpcPort = "5001" constant mongoURL (line 23) | mongoURL = "mongodb://mongo:27017" constant gRpcPort (line 24) | gRpcPort = "50001" type Config (line 27) | type Config struct method serve (line 99) | func (app *Config) serve() { function main (line 33) | func main() { function connectToMongo (line 114) | func connectToMongo() (*mongo.Client, error) { FILE: logger-service/cmd/web/middleware.go method SessionLoad (line 6) | func (app *Config) SessionLoad(next http.Handler) http.Handler { method Auth (line 11) | func (app *Config) Auth(next http.Handler) http.Handler { FILE: logger-service/cmd/web/render.go type TemplateData (line 9) | type TemplateData struct method addDefaultData (line 16) | func (app *Config) addDefaultData(td *TemplateData, r *http.Request) *Te... method render (line 23) | func (app *Config) render(w http.ResponseWriter, r *http.Request, t stri... FILE: logger-service/cmd/web/routes.go method routes (line 10) | func (app *Config) routes() http.Handler { method apiRouter (line 22) | func (app *Config) apiRouter() http.Handler { method webRouter (line 40) | func (app *Config) webRouter() http.Handler { FILE: logger-service/cmd/web/rpc.go type RPCServer (line 12) | type RPCServer struct method LogInfo (line 21) | func (r *RPCServer) LogInfo(payload RPCPayload, resp *string) error { type RPCPayload (line 15) | type RPCPayload struct FILE: logger-service/data/models.go function New (line 18) | func New(mongo *mongo.Client) Models { type Models (line 29) | type Models struct type LogEntry (line 37) | type LogEntry struct method Insert (line 46) | func (l *LogEntry) Insert(entry LogEntry) error { method All (line 64) | func (l *LogEntry) All() ([]*LogEntry, error) { method GetOne (line 99) | func (l *LogEntry) GetOne(id string) (*LogEntry, error) { method DropCollection (line 121) | func (l *LogEntry) DropCollection() error { method Update (line 135) | func (l *LogEntry) Update() (*mongo.UpdateResult, error) { FILE: logger-service/logs/logs.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Log (line 23) | type Log struct method Reset (line 32) | func (x *Log) Reset() { method String (line 41) | func (x *Log) String() string { method ProtoMessage (line 45) | func (*Log) ProtoMessage() {} method ProtoReflect (line 47) | func (x *Log) ProtoReflect() protoreflect.Message { method Descriptor (line 60) | func (*Log) Descriptor() ([]byte, []int) { method GetName (line 64) | func (x *Log) GetName() string { method GetData (line 71) | func (x *Log) GetData() string { type LogRequest (line 78) | type LogRequest struct method Reset (line 86) | func (x *LogRequest) Reset() { method String (line 95) | func (x *LogRequest) String() string { method ProtoMessage (line 99) | func (*LogRequest) ProtoMessage() {} method ProtoReflect (line 101) | func (x *LogRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*LogRequest) Descriptor() ([]byte, []int) { method GetLogEntry (line 118) | func (x *LogRequest) GetLogEntry() *Log { type LogResponse (line 125) | type LogResponse struct method Reset (line 133) | func (x *LogResponse) Reset() { method String (line 142) | func (x *LogResponse) String() string { method ProtoMessage (line 146) | func (*LogResponse) ProtoMessage() {} method ProtoReflect (line 148) | func (x *LogResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 161) | func (*LogResponse) Descriptor() ([]byte, []int) { method GetResult (line 165) | func (x *LogResponse) GetResult() string { function file_logs_proto_rawDescGZIP (line 197) | func file_logs_proto_rawDescGZIP() []byte { function init (line 221) | func init() { file_logs_proto_init() } function file_logs_proto_init (line 222) | func file_logs_proto_init() { FILE: logger-service/logs/logs_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type LogServiceClient (line 24) | type LogServiceClient interface type logServiceClient (line 28) | type logServiceClient struct method WriteLog (line 36) | func (c *logServiceClient) WriteLog(ctx context.Context, in *LogReques... function NewLogServiceClient (line 32) | func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient { type LogServiceServer (line 48) | type LogServiceServer interface type UnimplementedLogServiceServer (line 54) | type UnimplementedLogServiceServer struct method WriteLog (line 57) | func (UnimplementedLogServiceServer) WriteLog(context.Context, *LogReq... method mustEmbedUnimplementedLogServiceServer (line 60) | func (UnimplementedLogServiceServer) mustEmbedUnimplementedLogServiceS... type UnsafeLogServiceServer (line 65) | type UnsafeLogServiceServer interface function RegisterLogServiceServer (line 69) | func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceSer... function _LogService_WriteLog_Handler (line 73) | func _LogService_WriteLog_Handler(srv interface{}, ctx context.Context, ... FILE: mail-service/cmd/api/discover.go method registerService (line 12) | func (app *Config) registerService() { method listenToKeepAlive (line 38) | func (app *Config) listenToKeepAlive(kalRes <-chan *clientv3.LeaseKeepAl... function connectToEtcd (line 51) | func connectToEtcd() (*clientv3.Client, error) { FILE: mail-service/cmd/api/handlers.go method SendMail (line 9) | func (app *Config) SendMail(w http.ResponseWriter, r *http.Request) { FILE: mail-service/cmd/api/helpers.go constant randomStringSource (line 11) | randomStringSource = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX... type jsonResponse (line 13) | type jsonResponse struct method readJSON (line 20) | func (app *Config) readJSON(w http.ResponseWriter, r *http.Request, data... method writeJSON (line 39) | func (app *Config) writeJSON(w http.ResponseWriter, status int, data any... method errorJSON (line 63) | func (app *Config) errorJSON(w http.ResponseWriter, err error, status ..... method randomString (line 78) | func (app *Config) randomString(n int) string { FILE: mail-service/cmd/api/mailer.go type Mail (line 12) | type Mail struct method SendSMTPMessage (line 36) | func (m *Mail) SendSMTPMessage(msg Message) error { method buildHTMLMessage (line 99) | func (m *Mail) buildHTMLMessage(msg Message) (string, error) { method buildPlainTextMessage (line 121) | func (m *Mail) buildPlainTextMessage(msg Message) (string, error) { method getEncryption (line 139) | func (m *Mail) getEncryption(e string) mail.Encryption { method inlineCSS (line 153) | func (m *Mail) inlineCSS(s string) (string, error) { type Message (line 24) | type Message struct FILE: mail-service/cmd/api/main.go constant webPort (line 12) | webPort = "80" type Config (line 15) | type Config struct function main (line 20) | func main() { function createMail (line 47) | func createMail() Mail { FILE: mail-service/cmd/api/routes.go method routes (line 10) | func (app *Config) routes() http.Handler {