societe_com_cron

package
v0.0.0-...-4448b19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

AUTHOR : TRISTAN GRANIER RESUME : This service get entreprise registered with selected name TIME : Every 72 hours

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	session.CronJob
	// contains filtered or unexported fields
}

func GetNewService

func GetNewService(sess *session.Session) *Service

func (*Service) Fetch

func (service *Service) Fetch(configuration map[string]string, username string) (bool, error)

Fetching username tweets

func (*Service) GetConfiguration

func (service *Service) GetConfiguration() map[string]string

Get configuration

func (*Service) GetHibernate

func (service *Service) GetHibernate() time.Duration

Service as been started every 3 hours

func (*Service) GetRequired

func (service *Service) GetRequired() []string

Get required fields in configuration file

func (*Service) HasConfiguration

func (service *Service) HasConfiguration() bool

Define if service need configuration file

func (*Service) Name

func (service *Service) Name() string

Service name as been set here

func (*Service) Run

func (service *Service) Run() (bool, error)

Service Execution with opf routine

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL