github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/_examples/hello-webrpc-with-goschema-js/testNew.go (about) 1 package hello 2 3 import ( 4 "context" 5 "time" 6 ) 7 8 type Kind uint32 9 10 type Empty struct { 11 } 12 13 type User struct { 14 ID uint64 15 username string 16 createdAt *time.Time 17 } 18 19 type ExampleService interface { 20 Ping(ctx context.Context) (bool, error) 21 GetUser(ctx context.Context, userID uint64) (*User, error) 22 }