Documentation ¶
Index ¶
Constants ¶
View Source
const FluentdTag string = ""
FluentdTag is usually a static value across all instances of the same application as such it is set here as a constant value.
Falls back to the ServiceName.
View Source
const FriendlyServiceName = "Nomine"
FriendlyServiceName is the visible name of the service.
View Source
const ServiceName = "nomine"
ServiceName is an identifier-like name used anywhere this app needs to be identified.
It identifies the service itself, the actual instance needs to be identified via environment and other details.
Variables ¶
View Source
var ( Version string CommitHash string BuildDate string )
Provisioned by ldflags
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // Recommended values are: production, development, staging, release/123, etc Environment string `default:"production"` Debug bool `split_words:"true"` GrpcServiceAddr string `ignored:"true"` RestServiceAddr string `ignored:"true"` HealthAddr string `ignored:"true"` DebugAddr string `ignored:"true"` ShutdownTimeout time.Duration `ignored:"true"` FluentdEnabled bool `split_words:"true"` FluentdHost string `split_words:"true"` FluentdPort int `split_words:"true" default:"24224"` GithubToken string `split_words:"true"` TwitterConsumerKey string `split_words:"true" required:"true"` TwitterConsumerSecret string `split_words:"true" required:"true"` TwitterAccessKey string `split_words:"true" required:"true"` TwitterAccessSecret string `split_words:"true" required:"true"` WhoisxmlUser string `split_words:"true" required:"true"` WhoisxmlPassword string `split_words:"true" required:"true"` }
Configuration holds any kind of config that is necessary for running
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the RPC server
func NewService ¶
func NewService(checkers map[string]services.NameChecker) *Service
NewService creates a new Service
func (*Service) Check ¶
func (s *Service) Check(ctx context.Context, request *api.NameCheckRequest) (*api.NameCheckResponse, error)
Check checks a name availability
func (*Service) MultiCheck ¶
func (s *Service) MultiCheck(ctx context.Context, request *api.MultiNameCheckRequest) (*api.MultiNameCheckResponse, error)
MultiCheck checks multiple name availability
Click to show internal directories.
Click to hide internal directories.