Versions in this module Expand all Collapse all v0 v0.0.1 Jul 24, 2026 Changes in this version + const J2KEpoch + var ErrNoData = errors.New("winsgo: no data") + func EncodeWaveform(wave Waveform) ([]byte, error) + func J2KSeconds(t time.Time) float64 + func TimeFromJ2K(seconds float64) time.Time + type Channel struct + Alias string + EndTime time.Time + Groups []string + ID int + Instrument Instrument + LinearA float64 + LinearB float64 + Metadata map[string]string + SCNL SCNL + StartTime time.Time + Unit string + type Client struct + Conn net.Conn + func (c *Client) RemoteAddr() net.Addr + type Command struct + Args []string + ID string + Name string + Raw string + type Consumer interface + Consume func(context.Context, WaveformRequest, WaveformHandler) error + type ErrorHooks interface + OnError func(*Client, error) + type Hooks interface + OnClose func(*Client) + OnCommand func(*Client, Command) + OnConnection func(*Client) + OnData func(*Client, []byte) + type Instrument struct + Description string + Height float64 + ID int + Latitude float64 + Longitude float64 + Metadata map[string]string + Name string + TimeZone string + type Product int + const HelicorderProduct + const RSAMProduct + type ProductConsumer interface + ConsumeProduct func(context.Context, ProductRequest, func([]byte) error) error + type ProductRequest struct + Period int + Product Product + type Provider interface + Channels func(context.Context) ([]Channel, error) + type SCNL struct + Channel string + Location string + Network string + Station string + func (s SCNL) Code() string + func (s SCNL) String() string + type Server struct + Consumer Consumer + DisableHelicorder bool + MaxCommandSize int + Provider Provider + func New(provider Provider, consumer Consumer, hooks Hooks) *Server + func (s *Server) Serve(ctx context.Context, listener net.Listener) error + func (s *Server) Start(ctx context.Context, host string, port int) error + type TraceBuf struct + Bytes []byte + DataType string + EndTime time.Time + StartTime time.Time + type TraceBufConsumer interface + ConsumeTraceBuf func(context.Context, WaveformRequest, func(TraceBuf) error) error + type Waveform struct + DataType string + RegistrationOffset float64 + SampleRate float64 + Samples []int32 + StartTime time.Time + type WaveformHandler func(Waveform) error + type WaveformRequest struct + Channel SCNL + EndTime time.Time + ID string + StartTime time.Time