// Code generated by glex; DO NOT EDIT. // Lexicon schema: place.stream.config.getEnv package placestream import ( "context" "io" glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen" ) type ConfigGetEnv_Output struct { LexiconTypeID string `json:"$type,omitempty"` // gamesEnabled: Whether the games API is configured and available GamesEnabled *bool `json:"gamesEnabled,omitempty"` // playbackWorkerUrl: URL of the Cloudflare playback router worker PlaybackWorkerUrl *string `json:"playbackWorkerUrl,omitempty"` } // RecordTypeID implements glex.Record. func (t *ConfigGetEnv_Output) RecordTypeID() string { return "place.stream.config.getEnv" } func (t *ConfigGetEnv_Output) MarshalCBOR(w io.Writer) error { if t == nil { _, err := w.Write(cbg.CborNull) return err } // stamp $type on a copy so marshal never mutates the record cp := *t cp.LexiconTypeID = "place.stream.config.getEnv" return glex.MarshalCBOR(w, &cp) } func (t *ConfigGetEnv_Output) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t) } // ConfigGetEnv calls the XRPC method "place.stream.config.getEnv". // // Get client-facing environment configuration from the server. func ConfigGetEnv(ctx context.Context, c glex.LexClient) (*ConfigGetEnv_Output, error) { var out ConfigGetEnv_Output if err := c.LexDo(ctx, glex.Query, "", "place.stream.config.getEnv", nil, nil, &out); err != nil { return nil, err } return &out, nil }