mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
37 lines
637 B
Plaintext
37 lines
637 B
Plaintext
|
@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
|
||
|
}
|
||
|
|