mongo

package
v0.0.0-...-ccaf0b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	UpdatedAt time.Time `bson:"updated_at"`
	mgo.Index `bson:"-"`
	UserID    string        `bson:"user_id"`
	Topic     string        `bson:"topic"`
	State     string        `bson:"state"`
	Context   bson.Raw      `bson:"context,omitempty"`
	ID        bson.ObjectID `bson:"_id"`
}

func NewSession

func NewSession() *Session

func (*Session) GetId

func (s *Session) GetId() any

func (*Session) GetState

func (s *Session) GetState() string

func (*Session) GetTopic

func (s *Session) GetTopic() string

func (*Session) SetId

func (s *Session) SetId(id any)

func (*Session) SetState

func (s *Session) SetState(state string) error

func (*Session) SetTopic

func (s *Session) SetTopic(topic string) error

func (*Session) Validate

func (*Session) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL