Created
November 14, 2020 19:39
-
-
Save cyx/5d2dbb343ddfed564bb770bcae876088 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package api | |
type Repository interface { | |
FetchCode(ctx context.Context, id string) (Code, error) | |
} | |
type Runtime interface { | |
Execute(ctx context.Context, Code) (RuntimeResponse, error) | |
} | |
type Server struct { | |
Repo Repository | |
Runtime Runtime | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment