Skip to content

AlbertPuwadol/go-worker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-worker-template

New go worker template apply with gRPC

Example consume job

{
    "id": "123456",
    "text": "Test text",
    "task1": null,
    "task2": null,
    "task3": null
}

Example publish job

{
    "id": "123456",
    "text": "Test text",
    "task1": {
        "processed_text": "Test text",
        "entities": [
            {
                "start": 1,
                "end": 2,
                "entity": "Hospital",
                "label": "PLACE"
            },
            {
                "start": 3,
                "end": 10,
                "entity": "Doctor",
                "label": "PERSON"
            }
        ]
    },
    "task2": "POSITIVE",
    "task3": 100
}

About

Go worker template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages