Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.3 kB · 48 lines
Go
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849// 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}