Versions in this module Expand all Collapse all v0 v0.1.1 May 16, 2026 v0.1.0 Mar 12, 2026 Changes in this version + const Name + const SessionActive + const SessionClosed + const SessionExpired + const SessionPending + var VMID = ids.ID + type Channel struct + Created time.Time + ID ids.ID + Members []ids.ID + MessageCount uint64 + Name string + Owner ids.ID + type CloseSessionArgs struct + SessionID string + type CloseSessionReply struct + Success bool + type Config struct + IDPrefix string + MaxChannels int + MaxMessages int + RetentionDays int + SessionTTL int64 + type CreateSessionArgs struct + Participants []string + PublicKeys []string + type CreateSessionReply struct + Expires int64 + SessionID string + type Factory struct + func (f *Factory) New(logger log.Logger) (*VM, error) + type GetSessionArgs struct + SessionID string + type GetSessionReply struct + Session *Session + type HealthArgs struct + type HealthReply struct + Channels int + Healthy bool + Pending int + Sessions int + type Message struct + Ciphertext []byte + ID ids.ID + Sender ids.ID + Sequence uint64 + SessionID ids.ID + Signature []byte + Timestamp time.Time + type SendMessageArgs struct + Ciphertext string + Sender string + SessionID string + Signature string + type SendMessageReply struct + MessageID string + Sequence uint64 + type Service struct + func (s *Service) CloseSession(r *http.Request, args *CloseSessionArgs, reply *CloseSessionReply) error + func (s *Service) CreateSession(r *http.Request, args *CreateSessionArgs, reply *CreateSessionReply) error + func (s *Service) GetSession(r *http.Request, args *GetSessionArgs, reply *GetSessionReply) error + func (s *Service) Health(r *http.Request, args *HealthArgs, reply *HealthReply) error + func (s *Service) SendMessage(r *http.Request, args *SendMessageArgs, reply *SendMessageReply) error + type Session struct + ChannelID ids.ID + Created time.Time + Expires time.Time + ID ids.ID + Metadata map[string]string + Participants []ids.ID + PublicKeys [][]byte + Status string + type VM struct + func (vm *VM) CloseSession(sessionID ids.ID) error + func (vm *VM) CreateHandlers(ctx context.Context) (map[string]http.Handler, error) + func (vm *VM) CreateSession(participants []ids.ID, publicKeys [][]byte) (*Session, error) + func (vm *VM) GetSession(sessionID ids.ID) (*Session, error) + func (vm *VM) HealthCheck(ctx context.Context) (interface{}, error) + func (vm *VM) Initialize(logger log.Logger, configBytes []byte) error + func (vm *VM) SendMessage(sessionID ids.ID, sender ids.ID, ciphertext, signature []byte) (*Message, error) + func (vm *VM) Shutdown(ctx context.Context) error