Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceLogger ¶
type InstanceLogger struct {
// contains filtered or unexported fields
}
For now, we keep logs in memory but this is not suitable for production
func NewInstanceLogger ¶
func NewInstanceLogger(instanceId string) *InstanceLogger
func (*InstanceLogger) GetLog ¶
func (m *InstanceLogger) GetLog() []*api.LogEntry
func (*InstanceLogger) Start ¶
func (m *InstanceLogger) Start(path string) error
func (*InstanceLogger) Stop ¶
func (m *InstanceLogger) Stop()
func (*InstanceLogger) Subscribe ¶
func (m *InstanceLogger) Subscribe() ([]*api.LogEntry, *LogSubscriber)
type LogSubscriber ¶
type LogSubscriber = pubsub.Subscriber[*api.LogEntry]
Click to show internal directories.
Click to hide internal directories.