You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently researching this CGO to create a dynamic link library, which is an so file, which can be imported by many different languages.
Then there was a little problem during deployment, that is, how to make my so file wrap a cli through the outer layer when it is used, for example, give it a command start, it can open up memory and be resident, because some configuration files need to be loaded , initialize the redis connection pool, etc., and then there is a stop to do a cleanup when it is used up. Does anyone have any ideas to help Mengxin.
I found some information by myself, such as load the config use sync.Once. and using that kardianos/service, but the official website seems to say that it can only be used as a daemon process. Now I want to use it as an application that provides services. The difference from web services is that it is directly imported by other programs without opening ports.
The text was updated successfully, but these errors were encountered:
I am currently researching this CGO to create a dynamic link library, which is an so file, which can be imported by many different languages.
Then there was a little problem during deployment, that is, how to make my so file wrap a cli through the outer layer when it is used, for example, give it a command start, it can open up memory and be resident, because some configuration files need to be loaded , initialize the redis connection pool, etc., and then there is a stop to do a cleanup when it is used up. Does anyone have any ideas to help Mengxin.
I found some information by myself, such as load the config use sync.Once. and using that kardianos/service, but the official website seems to say that it can only be used as a daemon process. Now I want to use it as an application that provides services. The difference from web services is that it is directly imported by other programs without opening ports.
The text was updated successfully, but these errors were encountered: