session

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

The package persist allows to store data between sessions of hellocontest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewDefaultSession

func NewDefaultSession() *Session

func (*Session) LastFilename

func (s *Session) LastFilename() string

func (*Session) Restore

func (s *Session) Restore() error

func (*Session) SendSpotsToTci

func (s *Session) SendSpotsToTci() bool

func (*Session) SetLastFilename

func (s *Session) SetLastFilename(lastFilename string) error

func (*Session) SetSendSpotsToTci

func (s *Session) SetSendSpotsToTci(sendSpotsToTci bool) error

func (*Session) Store

func (s *Session) Store() error

type State

type State struct {
	LastFilename         string   `protobuf:"bytes,1,opt,name=last_filename,json=lastFilename,proto3" json:"last_filename,omitempty"`
	SendSpotsToTci       bool     `protobuf:"varint,2,opt,name=send_spots_to_tci,json=sendSpotsToTci,proto3" json:"send_spots_to_tci,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*State) Descriptor

func (*State) Descriptor() ([]byte, []int)

func (*State) GetLastFilename

func (m *State) GetLastFilename() string

func (*State) GetSendSpotsToTci

func (m *State) GetSendSpotsToTci() bool

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) String

func (m *State) String() string

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

func (m *State) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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