Documentation ¶
Index ¶
- Constants
- func Close()
- func Exit(code int)
- func L(fileIndex, debugIndex, offset int, item Item)
- func Recover()
- func SprintCutCheckQuote(max int, s string) string
- type Addr
- type AddrImpl
- type AfdFileIndex
- type AfdFileSize
- type AfdMsgIndex
- type AnnotatorFileData
- type Conn
- type ConnFnCloser
- type Decoder
- type EncDecRegId
- type EncDecRegistry
- type Encoder
- type FilesDataMsg
- type HandshakeMsg
- type InitWait
- type Item
- func IA(lhs *ItemList, op int, rhs *ItemList) Item
- func IAn() Item
- func IB(x Item, op int, y Item, result Item) Item
- func IBr() Item
- func IC(enter Item, result Item) Item
- func ICe(fun Item, args *ItemList) Item
- func II(expr, index, result Item) Item
- func II2(expr, low, high, max Item, slice3 bool, result Item) Item
- func IKV(key, value Item) Item
- func IL2(u ...Item) Item
- func ILa(reason string) Item
- func ILit(fields *ItemList) Item
- func INAnn(reason string) Item
- func IP(x Item) Item
- func IS(ch, value Item) Item
- func ISel(x, sel, result Item) Item
- func ISt() Item
- func ITA(x, t, result Item, isSwitch bool) Item
- func IU(enter Item, result Item) Item
- func IUe(op int, x Item) Item
- func IVi(v any) Item
- func IVr(v int) Item
- func IVs(s string) Item
- func IVt(v any) Item
- type ItemAnon
- type ItemAssign
- type ItemBinary
- type ItemBranch
- type ItemCall
- type ItemCallEnter
- type ItemIndex
- type ItemIndex2
- type ItemKeyValue
- type ItemLabel
- type ItemList
- type ItemList2
- type ItemLiteral
- type ItemNotAnn
- type ItemParen
- type ItemSelector
- type ItemSend
- type ItemStep
- type ItemTypeAssert
- type ItemUnary
- type ItemUnaryEnter
- type ItemValue
- type Listener
- type Listener2
- type Logger
- type MsgWriteBuffering
- type OffsetMsg
- type OffsetMsgs
- type PeekedConn
- type PrefixWriter
- type Proto
- type ProtoClient
- type ProtoConn
- type ProtoEditorSide
- type ProtoExecSide
- type ProtoServer
- type ProtoSide
- type ReqFilesDataMsg
- type ReqStartMsg
Constants ¶
View Source
const Listener2PeekLen = 9
Variables ¶
This section is empty.
Functions ¶
func Exit ¶ added in v1.3.1
func Exit(code int)
Auto-inserted in annotated files to replace os.Exit calls. Don't use. Non-annotated files that call os.Exit will not let the editor receive all debug msgs. The sync msgs option will need to be used.
func L ¶ added in v1.3.7
Auto-inserted at annotations. Don't use. NOTE: func name is used in annotator, don't rename.
func Recover ¶ added in v1.3.9
func Recover()
Auto-inserted at functions to recover from panics. Don't use.
func SprintCutCheckQuote ¶ added in v1.3.3
Types ¶
type AddrImpl ¶ added in v1.3.7
type AddrImpl struct {
// contains filtered or unexported fields
}
a simple addr implementation
type AfdFileIndex ¶ added in v1.3.7
type AfdFileIndex = uint16
type AfdFileSize ¶ added in v1.3.7
type AfdFileSize = uint32
type AfdMsgIndex ¶ added in v1.3.7
type AfdMsgIndex = uint32 // uint16 enough?
type AnnotatorFileData ¶
type AnnotatorFileData struct { // decl order matters: used by the config generator to fill the struct FileIndex AfdFileIndex NMsgIndexes AfdMsgIndex Filename string FileSize AfdFileSize FileHash []byte }
type ConnFnCloser ¶ added in v1.3.9
func (*ConnFnCloser) Close ¶ added in v1.3.9
func (c *ConnFnCloser) Close() error
type Decoder ¶ added in v1.3.7
type Decoder struct { Logger // contains filtered or unexported fields }
type EncDecRegId ¶ added in v1.3.9
type EncDecRegId byte
type EncDecRegistry ¶ added in v1.3.9
type EncDecRegistry struct {
// contains filtered or unexported fields
}
encode/decode, id/type, registry
type Encoder ¶ added in v1.3.7
type Encoder struct { Logger // contains filtered or unexported fields }
type FilesDataMsg ¶
type FilesDataMsg struct {
Data []*AnnotatorFileData
}
type HandshakeMsg ¶ added in v1.3.9
type HandshakeMsg struct{ Msg string }
type ItemBranch ¶
type ItemBranch struct {
Item
}
type ItemCall ¶
type ItemCall struct { Item Enter *ItemCallEnter Result Item }
type ItemCallEnter ¶
type ItemIndex2 ¶
type ItemKeyValue ¶
type ItemLiteral ¶
type ItemNotAnn ¶ added in v1.3.1
type ItemTypeAssert ¶
type ItemUnary ¶
type ItemUnary struct { Item Enter *ItemUnaryEnter Result Item }
type ItemUnaryEnter ¶
type Listener2 ¶ added in v1.3.9
type Listener2 struct { Listener // contains filtered or unexported fields }
besides direct tcp/unix, allows on demand websocket clients
type MsgWriteBuffering ¶ added in v1.3.7
type MsgWriteBuffering struct {
// contains filtered or unexported fields
}
func (*MsgWriteBuffering) Write ¶ added in v1.3.7
func (wb *MsgWriteBuffering) Write(lm *OffsetMsg) error
type OffsetMsg ¶ added in v1.3.7
type OffsetMsg struct { FileIndex AfdFileIndex MsgIndex AfdMsgIndex Offset AfdFileSize Item Item }
type OffsetMsgs ¶ added in v1.3.7
type OffsetMsgs []*OffsetMsg
type PeekedConn ¶ added in v1.3.9
type PrefixWriter ¶ added in v1.3.9
type PrefixWriter struct {
// contains filtered or unexported fields
}
func NewPrefixWriter ¶ added in v1.3.9
func NewPrefixWriter(writer io.Writer, prefix string) *PrefixWriter
type Proto ¶ added in v1.3.7
type ProtoClient ¶ added in v1.3.9
type ProtoClient struct { Logger // contains filtered or unexported fields }
func (*ProtoClient) CloseOrWait ¶ added in v1.3.9
func (p *ProtoClient) CloseOrWait() error
func (*ProtoClient) Read ¶ added in v1.3.9
func (p *ProtoClient) Read(v any) error
func (*ProtoClient) Write ¶ added in v1.3.9
func (p *ProtoClient) Write(v any) error
func (*ProtoClient) WriteMsg ¶ added in v1.3.9
func (p *ProtoClient) WriteMsg(m *OffsetMsg) error
type ProtoConn ¶ added in v1.3.7
type ProtoConn struct { Logger // contains filtered or unexported fields }
func InitProtoSide ¶ added in v1.3.9
type ProtoEditorSide ¶ added in v1.3.7
type ProtoEditorSide struct { FData *FilesDataMsg // received from exec side Logger // contains filtered or unexported fields }
type ProtoExecSide ¶ added in v1.3.7
type ProtoExecSide struct { FData *FilesDataMsg // to be sent, can be discarded NoWriteBuffering bool Logger // contains filtered or unexported fields }
type ProtoServer ¶ added in v1.3.9
type ProtoServer struct { Logger // contains filtered or unexported fields }
func (*ProtoServer) CloseOrWait ¶ added in v1.3.9
func (p *ProtoServer) CloseOrWait() error
func (*ProtoServer) Read ¶ added in v1.3.9
func (p *ProtoServer) Read(v any) error
func (*ProtoServer) Write ¶ added in v1.3.9
func (p *ProtoServer) Write(v any) error
func (*ProtoServer) WriteMsg ¶ added in v1.3.9
func (p *ProtoServer) WriteMsg(m *OffsetMsg) error
type ProtoSide ¶ added in v1.3.7
type ProtoSide interface {
// contains filtered or unexported methods
}
type ReqFilesDataMsg ¶
type ReqFilesDataMsg struct{}
type ReqStartMsg ¶
type ReqStartMsg struct{}
Click to show internal directories.
Click to hide internal directories.