Skip to content
Snippets Groups Projects
Select Git revision
  • a007f9404fb3d0dc29a6208798f7db3a16198fd6
  • master default protected
  • ConnectionServer
  • sample-messaging-app
4 results

endpoints.go

Blame
  • endpoints.go 525 B
    package main
    
    import (
    	jww "github.com/spf13/jwalterweatherman"
    	"gitlab.com/elixxir/client/restlike"
    )
    
    // Callback will be called whenever a message is received by the server
    //  with a matching restlike.Method and restlike.URI.
    //
    // If no endpoint exists
    // 	the lower level of the restlike package returns an error
    //  to the requester.
    // User-defined message handling logic goes here.
    func Callback(request *restlike.Message) (response *restlike.Message) {
    	jww.INFO.Printf("Request received: %v", request)
    	return
    }