Documentation

Overview

    Package botinfo implements opening and closing a bot's botinfo stored on disk.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Store

    type Store struct {
    	swmbot.LocalState
    	// contains filtered or unexported fields
    }

      Store holds a bot's botinfo and dut name, and adds a Close method.

      func Open

      func Open(ctx context.Context, b *swmbot.Info, dutName string) (*Store, error)

        Open loads the BotInfo for the Bot. The BotInfo should be closed afterward to write it back.

        func (*Store) Close

        func (s *Store) Close(ctx context.Context) error

          Close writes the BotInfo back to disk. This method does nothing on subsequent calls. This method is safe to call on a nil pointer.

          Source Files