Files
sonr/pkl/base.types/Ctx.pkl
T

37 lines
637 B
Plaintext
Raw Normal View History

@go.Package { name = "github.com/onsonr/sonr/pkg/common/types" }
module common.types.Ctx
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
import "./DWN.pkl"
class JsonField extends go.Field {
structTags {
["json"] = "%{name},omitempty"
}
}
class Session {
@JsonField
id: String
@JsonField
challenge: String
@JsonField
browserName: String
@JsonField
browserVersion: String
@JsonField
userArchitecture: String
@JsonField
platform: String
@JsonField
platformVersion: String
@JsonField
deviceModel: String
@JsonField
isMobile: Boolean
@JsonField
vaultAddress: String
}