Skip to content

Commit

Permalink
Basic example: Add a method with some request args but no return args
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Aug 25, 2023
1 parent e9a6459 commit 97e6521
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 12 deletions.
68 changes: 59 additions & 9 deletions _examples/golang-basics/example.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions _examples/golang-basics/example.ridl
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ service ExampleService
- Version() => (version: Version)
- GetUser(header: map<string,string>, userID: uint64) => (user: User)
- FindUser(s: SearchFilter) => (name: string, user: User)
- LogEvent(event: string)
4 changes: 4 additions & 0 deletions _examples/golang-basics/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ func (rpc *ExampleServiceRPC) FindUser(ctx context.Context, s *SearchFilter) (st
Username: name,
}, nil
}

func (rpc *ExampleServiceRPC) LogEvent(ctx context.Context, event string) error {
return nil
}
9 changes: 6 additions & 3 deletions _examples/golang-imports/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97e6521

Please sign in to comment.