Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package main
import (
"github.com/poolpOrg/go-opensmtpd/table"
)
func check(token string, service table.LookupService, key string) {
//table.Boolean(token, true)
//table.Boolean(token, false)
table.Failure(token)
}
func lookup(token string, service table.LookupService, key string) {
//table.Result(token)
//table.Result(token, "foobar")
table.Failure(token)
}
func fetch(token string, service table.LookupService) {
//table.Result(token)
//table.Result(token, "foobar")
table.Failure(token)
}
func main() {
table.OnCheck(check)
table.OnLookup(lookup)
table.OnFetch(fetch)
table.Dispatch()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.