package
0.4.5
Repository: https://github.com/russellluo/kun.git
Documentation: pkg.go.dev

# README

messaging

This example illustrates how to specify multiple HTTP request operations.

Generate the code

$ go generate

Test the server

Run the server:

$ go run cmd/main.go
2022/02/26 17:45:20 transport=HTTP addr=:8080

Get a message:

$ curl -XGET 'http://localhost:8080/messages/123456'
{"text":"user[]: message[123456]"}

Get a message from a specific user:

$ curl -XGET 'http://localhost:8080/users/me/messages/123456'
{"text":"user[me]: message[123456]"}

# Packages

No description provided by the author

# Functions

MakeEndpointOfGetMessage creates the endpoint for s.GetMessage.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateGetMessageRequest creates a validator for GetMessageRequest.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author