-
Notifications
You must be signed in to change notification settings - Fork 1
ipc
github-actions[bot] edited this page Apr 24, 2025
·
7 revisions
import "github.com/AarC10/GSW-V2/lib/ipc"- type Reader
-
type ShmHandler
- func CreateShmHandler(identifier string, size int, isWriter bool, shmDir string) (*ShmHandler, error)
- func CreateShmReader(identifier string, shmDir string) (*ShmHandler, error)
- func (handler *ShmHandler) Cleanup()
- func (handler *ShmHandler) LastUpdate() time.Time
- func (handler *ShmHandler) Read() ([]byte, error)
- func (handler *ShmHandler) ReadNoTimestamp() ([]byte, error)
- func (handler *ShmHandler) Write(data []byte) error
- type Writer
type Reader
Reader is an interface for receiving data across processes
type Reader interface {
Read() ([]byte, error)
Cleanup()
}type ShmHandler
ShmHandler is a shared memory handler for inter-process communication
type ShmHandler struct {
// contains filtered or unexported fields
}func CreateShmHandler
func CreateShmHandler(identifier string, size int, isWriter bool, shmDir string) (*ShmHandler, error)CreateShmHandler creates a shared memory handler for inter-process communication
func CreateShmReader
func CreateShmReader(identifier string, shmDir string) (*ShmHandler, error)CreateShmReader creates a shared memory reader for inter-process communication
func (*ShmHandler) Cleanup
func (handler *ShmHandler) Cleanup()Cleanup cleans up the shared memory handler and removes the shared memory file
func (*ShmHandler) LastUpdate
func (handler *ShmHandler) LastUpdate() time.TimeLastUpdate returns the last update time of the shared memory
func (*ShmHandler) Read
func (handler *ShmHandler) Read() ([]byte, error)Read reads data from shared memory
func (*ShmHandler) ReadNoTimestamp
func (handler *ShmHandler) ReadNoTimestamp() ([]byte, error)ReadNoTimestamp reads data from shared memory without the timestamp
func (*ShmHandler) Write
func (handler *ShmHandler) Write(data []byte) errorWrite writes data to shared memory
type Writer
Writer is an interface for sending data across processes
type Writer interface {
Write(data []byte) error
Cleanup()
}Generated by gomarkdoc