Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to martini #5

Open
buldo opened this issue Apr 8, 2016 · 2 comments
Open

Access to martini #5

buldo opened this issue Apr 8, 2016 · 2 comments

Comments

@buldo
Copy link

buldo commented Apr 8, 2016

I'm not sure but I think that it is good idea to provide more access to martini which works inside bot.
It will allow to create web interface for bot.

Regard,
Roman

@rockneurotiko
Copy link
Owner

Hmmmmmm

Actually that's a great idea!

I'll think how to do it, but maybe some method that accept a martini instance, setup the handler and start the server, or other that just return the martini instance and then the programmer can do whatever he wants.

Any idea? What it would be better? 😄

@buldo
Copy link
Author

buldo commented Apr 8, 2016

Hah,
I came from .net world and my bot based on Your library is my first golang application.
I'm not sure that my ideas is right.
Bot method that returns reference to martini inside the bot is good idea at first look.
But I afraid that full access to martini can lead to misconfiguration issues.
I see next variants: full access to martini or managed access to martini via wrapper class or wrapper methods inside bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants