// Code generated by glex; DO NOT EDIT. // Lexicon schema: place.stream.server.getStorage package placestream import ( "context" "io" glex "github.com/streamplace/glex/runtime" cbg "github.com/whyrusleeping/cbor-gen" ) type ServerGetStorage_Output struct { LexiconTypeID string `json:"$type,omitempty"` Storage *ServerDefs_Storage `json:"storage,omitempty"` } // RecordTypeID implements glex.Record. func (t *ServerGetStorage_Output) RecordTypeID() string { return "place.stream.server.getStorage" } func (t *ServerGetStorage_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.server.getStorage" return glex.MarshalCBOR(w, &cp) } func (t *ServerGetStorage_Output) UnmarshalCBOR(r io.Reader) error { return glex.UnmarshalCBOR(r, t) } // ServerGetStorage calls the XRPC method "place.stream.server.getStorage". // // Get S3 storage configuration (with masked secret key). func ServerGetStorage(ctx context.Context, c glex.LexClient) (*ServerGetStorage_Output, error) { var out ServerGetStorage_Output if err := c.LexDo(ctx, glex.Query, "", "place.stream.server.getStorage", nil, nil, &out); err != nil { return nil, err } return &out, nil }