github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/service/locale.eng.go (about)

     1  //go:build lang_eng
     2  
     3  /* For license and copyright information please see the LEGAL file in the code repository */
     4  
     5  package service
     6  
     7  import (
     8  	"github.com/GeniusesGroup/libgo/protocol"
     9  )
    10  
    11  const domainEnglish = "Service"
    12  
    13  func init() {
    14  	ErrNotFound.SetDetail(protocol.LanguageEnglish, domainEnglish,
    15  		"Not Found",
    16  		"Requested service by given identifier not found in this application",
    17  		"",
    18  		"",
    19  		nil)
    20  
    21  	ErrServiceNotAcceptSRPC.SetDetail(protocol.LanguageEnglish, domainEnglish,
    22  		"Service Not Accept sRPC",
    23  		"Requested service by given ID not accept sRPC protocol in this server",
    24  		"Try other server or contact support of the software",
    25  		"It is so easy to implement sRPC handler for a service! Take a time and do it!",
    26  		nil)
    27  
    28  	ErrServiceNotAcceptSRPCDirect.SetDetail(protocol.LanguageEnglish, domainEnglish,
    29  		"Service Not Accept Direct sRPC",
    30  		"Requested service by given ID not accept direct sRPC protocol in this server",
    31  		"Try other server or contact support of the software",
    32  		"",
    33  		nil)
    34  
    35  	ErrServiceNotAcceptHTTP.SetDetail(protocol.LanguageEnglish, domainEnglish,
    36  		"Service Not Accept HTTP",
    37  		"Requested service by given ID not accept HTTP protocol in this server",
    38  		"Try other server or contact support of the software",
    39  		"It is so easy to implement HTTP handler for a service! Take a time and do it!",
    40  		nil)
    41  }